Orchestrator
Timeline animator for Transform objects.
Constructor
-
Orchestrator(target: Any) → Orchestrator
Timeline animator for Transform objects.
Properties
| Name | Description | Type |
|---|---|---|
finalized | Whether the orchestrator has been finalized. | bool |
finished | Whether the animation has completed. | bool |
looping | Whether the animation should loop when finished. | bool |
playing | Whether the animation is currently playing. | bool |
Methods
Finalize
finalize() → NoneFinalize the orchestrator, preventing further edits.
Must be called before play(). Logs a warning if called multiple times.
Parallel
parallel(*args) → OrchestratorAdd multiple effects to run in parallel.
Args
*effects: Variable number of Effect objects to run simultaneously.
Returns
Orchestrator : Self for method chaining.
Pause
pause() → NonePause the animation at the current position.
Play
play() → NoneStart playing the animation from the beginning.
Logs a warning if not finalized or if there are no steps.
Resume
resume() → NoneResume a paused animation.
Rewind
rewind() → NoneReset the animation to the beginning without stopping.
Stop
stop() → NoneStop the animation and reset to the beginning.
Then
then(effect: Effect) → OrchestratorAdd a single effect to the timeline.
Args
effect: The Effect to add.
Returns
Orchestrator : Self for method chaining.