pymel.util.mathutils.blend

blend(a, b, weight=0.5)

blend(a, b[, weight=0.5]) : Blends values a and b according to normalized weight w, returns a for weight == 0.0 and b for weight = 1.0, a*(1.0-weight)+b*weight in between

Return type:float