direct.interval.ActorInterval
from direct.interval.ActorInterval import ActorInterval, LerpAnimInterval
ActorInterval module: contains the ActorInterval class.
See the Actor Intervals page in the programming manual for explanation of this class.
Inheritance diagram
- class ActorInterval(actor, animName, loop=0, constrainedLoop=0, duration=None, startTime=None, endTime=None, startFrame=None, endFrame=None, playRate=1.0, name=None, forceUpdate=0, partName=None, lodName=None)[source]
Bases:
Interval
- __init__(self, actor, animName, loop=0, constrainedLoop=0, duration=None, startTime=None, endTime=None, startFrame=None, endFrame=None, playRate=1.0, name=None, forceUpdate=0, partName=None, lodName=None)[source]
- animNum = 1
- getCurrentFrame(self)[source]
Calculate the current frame playing in this interval.
returns a float value between startFrame and endFrame, inclusive returns None if there are any problems
- notify = <direct.directnotify.Notifier.Notifier object>
- class LerpAnimInterval(actor, duration, startAnim, endAnim, startWeight=0.0, endWeight=1.0, blendType='noBlend', name=None, partName=None, lodName=None)[source]
Bases:
CLerpAnimEffectInterval
- __init__(self, actor, duration, startAnim, endAnim, startWeight=0.0, endWeight=1.0, blendType='noBlend', name=None, partName=None, lodName=None)[source]
- lerpAnimNum = 1