direct.interval.LerpInterval

from direct.interval.LerpInterval import LerpColorInterval, LerpColorScaleInterval, LerpFunc, LerpFuncNS, LerpFunctionInterval, LerpFunctionNoStateInterval, LerpHprInterval, LerpHprScaleInterval, LerpNodePathInterval, LerpPosHprInterval, LerpPosHprScaleInterval, LerpPosHprScaleShearInterval, LerpPosInterval, LerpPosQuatInterval, LerpPosQuatScaleInterval, LerpPosQuatScaleShearInterval, LerpQuatInterval, LerpQuatScaleInterval, LerpScaleInterval, LerpShearInterval, LerpTexOffsetInterval, LerpTexRotateInterval, LerpTexScaleInterval

LerpInterval module: contains the LerpInterval class

Inheritance diagram

Inheritance diagram of direct.interval.LerpInterval

class LerpColorInterval(nodePath, duration, color, startColor=None, other=None, blendType='noBlend', bakeInStart=1, name=None, override=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, color, startColor=None, other=None, blendType='noBlend', bakeInStart=1, name=None, override=None)[source]
class LerpColorScaleInterval(nodePath, duration, colorScale, startColorScale=None, other=None, blendType='noBlend', bakeInStart=1, name=None, override=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, colorScale, startColorScale=None, other=None, blendType='noBlend', bakeInStart=1, name=None, override=None)[source]
class LerpFunc(*args, **kw)[source]

Bases: LerpFunctionInterval

__init__(self, *args, **kw)[source]
class LerpFuncNS(*args, **kw)[source]

Bases: LerpFunctionNoStateInterval

__init__(self, *args, **kw)[source]
class LerpFunctionInterval(function, duration=0.0, fromData=0, toData=1, blendType='noBlend', extraArgs=[], name=None)[source]

Bases: Interval

Class used to execute a function over time. Function can access fromData and toData to perform blend. If fromData and toData not specified, will execute the given function passing in values ranging from 0 to 1

__init__(function, duration, fromData, toData, name)[source]
lerpFunctionIntervalNum = 1
notify = <direct.directnotify.Notifier.Notifier object>
privStep(self, t)[source]
class LerpFunctionNoStateInterval(function, duration=0.0, fromData=0, toData=1, blendType='noBlend', extraArgs=[], name=None)[source]

Bases: Interval

Class used to execute a function over time. Function can access fromData and toData to perform blend. If fromData and toData not specified, will execute the given function passing in values ranging from 0 to 1

This is different from a standard LerpFunction, in that it assumes the function is not modifying any state that needs to be kept; so that it will only call the function while the lerp is actually running, and will not be guaranteed to call the function with its final value of the lerp. In particular, if the lerp interval happens to get skipped over completely, it will not bother to call the function at all.

__init__(function, duration, fromData, toData, name)[source]
lerpFunctionIntervalNum = 1
notify = <direct.directnotify.Notifier.Notifier object>
privStep(self, t)[source]
class LerpHprInterval(nodePath, duration, hpr, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, hpr, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpHprScaleInterval(nodePath, duration, hpr, scale, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, hpr, scale, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpNodePathInterval(name, duration, blendType, bakeInStart, fluid, nodePath, other)[source]

Bases: CLerpNodePathInterval

__init__(self, name, duration, blendType, bakeInStart, fluid, nodePath, other)[source]
anyCallable(self, *params)[source]
lerpNodePathNum = 1
setupParam(self, func, param)[source]
class LerpPosHprInterval(nodePath, duration, pos, hpr, startPos=None, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, pos, hpr, startPos=None, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpPosHprScaleInterval(nodePath, duration, pos, hpr, scale, startPos=None, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, pos, hpr, scale, startPos=None, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpPosHprScaleShearInterval(nodePath, duration, pos, hpr, scale, shear, startPos=None, startHpr=None, startQuat=None, startScale=None, startShear=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, pos, hpr, scale, shear, startPos=None, startHpr=None, startQuat=None, startScale=None, startShear=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpPosInterval(nodePath, duration, pos, startPos=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, pos, startPos=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpPosQuatInterval(nodePath, duration, pos, quat=None, startPos=None, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, pos, quat=None, startPos=None, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]
privDoEvent(self, t, event)[source]
class LerpPosQuatScaleInterval(nodePath, duration, pos, quat=None, scale=None, startPos=None, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, pos, quat=None, scale=None, startPos=None, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]
privDoEvent(self, t, event)[source]
class LerpPosQuatScaleShearInterval(nodePath, duration, pos, quat=None, scale=None, shear=None, startPos=None, startHpr=None, startQuat=None, startScale=None, startShear=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, pos, quat=None, scale=None, shear=None, startPos=None, startHpr=None, startQuat=None, startScale=None, startShear=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]
privDoEvent(self, t, event)[source]
class LerpQuatInterval(nodePath, duration, quat=None, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, quat=None, startHpr=None, startQuat=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None, hpr=None)[source]
privDoEvent(self, t, event)[source]
class LerpQuatScaleInterval(nodePath, duration, quat=None, scale=None, hpr=None, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, quat=None, scale=None, hpr=None, startHpr=None, startQuat=None, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpScaleInterval(nodePath, duration, scale, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, scale, startScale=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpShearInterval(nodePath, duration, shear, startShear=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, shear, startShear=None, other=None, blendType='noBlend', bakeInStart=1, fluid=0, name=None)[source]
privDoEvent(self, t, event)[source]
class LerpTexOffsetInterval(nodePath, duration, texOffset, startTexOffset=None, other=None, blendType='noBlend', textureStage=None, bakeInStart=1, name=None, override=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, texOffset, startTexOffset=None, other=None, blendType='noBlend', textureStage=None, bakeInStart=1, name=None, override=None)[source]
class LerpTexRotateInterval(nodePath, duration, texRotate, startTexRotate=None, other=None, blendType='noBlend', textureStage=None, bakeInStart=1, name=None, override=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, texRotate, startTexRotate=None, other=None, blendType='noBlend', textureStage=None, bakeInStart=1, name=None, override=None)[source]
class LerpTexScaleInterval(nodePath, duration, texScale, startTexScale=None, other=None, blendType='noBlend', textureStage=None, bakeInStart=1, name=None, override=None)[source]

Bases: LerpNodePathInterval

__init__(self, nodePath, duration, texScale, startTexScale=None, other=None, blendType='noBlend', textureStage=None, bakeInStart=1, name=None, override=None)[source]