director.propertyanimation module¶
-
class
director.propertyanimation.
AnimatePropertyValue
(obj, propertyName, targetValue, animationTime=1.0)[source]¶ Bases:
object
This class is used to ramp a scalar or vector property from its current value to a target value using linear inteprolation. For example:
obj = getSomeObject()
# fade the Alpha property to 0.0 AnimatePropertyValue(obj, ‘Alpha’, 0.0).start()