Bases: Boost.Python.instance
Base class for all animations.
Sets a python callable to be invoked when the animation starts. Corresponds to the constructor parameter startCallback.
Sets a python callable to invoke when the animation has finished running. Corresponds to the constructor parameter stopCallback.
Stops the animation.
Starts the animation.
Parameters: | keepAttr – If this parameter is set to True, the animation doesn’t set the attribute value when starting. Instead, it calculates a virtual start time from the current attribute value and proceeds from there. |
---|
Returns True if the animation is currently executing.
Bases: Boost.Python.instance
One state of a StateAnim.
Parameters: |
|
---|
Bases: libavg.avg.Anim
Bases: libavg.avg.AttrAnim
Class that animates an attribute of a libavg node continuously and linearly. The animation will not stop until the abort() method is called.
A possible use case is the continuous rotation of an object.
Parameters: |
|
---|
Bases: libavg.avg.SimpleAnim
Class that animates an attribute of a libavg node. The animation proceeds in three phases: ease-in, linear and ease-out. Start and end speed are zero. Ease-in and ease-out phases have the shape of one quadrant of the sine curve.
Parameters: |
|
---|
Bases: libavg.avg.SimpleAnim
Class that animates an attribute of a libavg node by interpolating linearly between start and end values.
Parameters: |
|
---|
Bases: libavg.avg.Anim
Animation that executes several child animations at the same time. The duration of the ParallelAnim is the maximum of the child’s durations or maxAge, whatever is shorter.
Parameters: |
|
---|
Bases: libavg.avg.AttrAnim
Base class for animations that change libavg node attributes by interpolating over a set amount of time. If Anim.abort() isn’t needed, there is no need to hold on to the animation object after calling Anim.start() - it will exist exactly as long as the animation lasts and then disappear.
The animation framework makes sure that only one animation per attribute of a node runs at any given time. If a second one is started, the first one is aborted.
Bases: libavg.avg.Anim
Animation that executes one of several child animations depending on its current state. The state can be None, in which case no animation is executed. None is the initial state. Note that changing the state of an animation during a start or stop callback of a child animation is not possible. An attempt to do so is silently ignored.
Parameters: | states – A list of AnimState objects. |
---|
Setting this to True causes all state changes to be printed on the console.
Bases: libavg.avg.Anim
Animation that simply does nothing for a specified duration. Useful in the context of StateAnims.
Parameters: |
|
---|
Fades the opacity of a node.
Parameters: |
|
---|
Fades the opacity of a node to zero.
Parameters: |
|
---|
Returns the total number of running attribute-based animations (this includes LinearAnim, EaseInOutAnim and ContinuousAnim). Useful for debugging memory leaks.