VarwinModelWrapper
- class VarwinModel.VarwinModelWrapper(object: Object)
Bases:
Object- class AnimationPlayTypeOptions
Bases:
object- Direct: Any = Ellipsis
Direct
- Reverse: Any = Ellipsis
Reverse
- PingPong: Any = Ellipsis
Ping-pong
- class LoopOptions
Bases:
object- Looped: Any = Ellipsis
Looped
- NotLooped: Any = Ellipsis
Not looped
- property AnimationPlaybackMode: Any
Animation playback to
- Returns:
value from the list:
VarwinModelWrapper.AnimationPlayTypeOptions.Direct
VarwinModelWrapper.AnimationPlayTypeOptions.Reverse
VarwinModelWrapper.AnimationPlayTypeOptions.PingPong
Example:
value = instance.AnimationPlaybackMode
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property LoopMode: Any
Animation playback to
- Returns:
value from the list:
VarwinModelWrapper.LoopOptions.Looped
VarwinModelWrapper.LoopOptions.NotLooped
Example:
value = instance.LoopMode
- property AnimationSpeed: float
Animation playback speed
Example:
value = instance.AnimationSpeed
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- SetAnimationByIndex(index: int) None
Play animation №
Example:
instance.SetAnimationByIndex(0)
- PlayAnimation() None
Play current animation playback
Example:
instance.PlayAnimation()
- PauseAnimation() None
Pause current animation playback
Example:
instance.PauseAnimation()
- StopAnimation() None
Stop current animation playback
Example:
instance.StopAnimation()
- AddAnimationFinishedHandler(handler: Callable[[int, Object], CoroutineType]) None
Animation ended
- Parameters:
handler –
Asynchronous handler function with signature:
index (int): index
sender (Object): the object that triggered the event
Example:
async def OnAnimationFinished(index, sender): pass instance.AddAnimationFinishedHandler(OnAnimationFinished)
- AddAnimationPausedHandler(handler: Callable[[int, Object], CoroutineType]) None
Animation paused
- Parameters:
handler –
Asynchronous handler function with signature:
index (int): index
sender (Object): the object that triggered the event
Example:
async def OnAnimationPaused(index, sender): pass instance.AddAnimationPausedHandler(OnAnimationPaused)
- AddAnimationStoppedHandler(handler: Callable[[int, Object], CoroutineType]) None
Animation stopped
- Parameters:
handler –
Asynchronous handler function with signature:
index (int): index
sender (Object): the object that triggered the event
Example:
async def OnAnimationStopped(index, sender): pass instance.AddAnimationStoppedHandler(OnAnimationStopped)