Package libavg :: Module avg :: Class ContinuousAnim

Class ContinuousAnim


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.

Instance Methods
 
__init__(...)
Raises an exception This class cannot be instantiated from Python

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from AttrAnim
 
start(...)
Starts the animation.
    Inherited from Anim
 
abort(...)
Stops the animation.
 
isRunning(...)
Returns True if the animation is currently executing
 
setStartCallback(...)
Sets a python callable to be invoked when the animation starts.
 
setStopCallback(...)
Sets a python callable to invoke when the animation has finished running.
Properties

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

Raises an exception This class cannot be instantiated from Python

Parameters:
  • node - The libavg node object to animate.
  • attrName - The name of the attribute to change. Must be a numeric attribute.
  • startValue - Initial value of the attribute.
  • speed - Attribute change per second.
  • useInt - If True, the attribute is always set to an integer value.
  • onStart - Python callable to invoke when the animation starts.
  • onStop - Python callable to invoke when the animation has finished running, either because abort has been called or because another animation for the same attribute has been started.
Overrides: object.__init__