Orchestrator

Timeline animator for Transform objects.

Constructor

Timeline animator for Transform objects.

Properties


NameDescriptionType
finalizedWhether the orchestrator has been finalized.bool
playingWhether the animation is currently playing.bool
finishedWhether the animation has completed.bool
loopingWhether the animation should loop when finished.bool

Methods


Parallel

parallel(*effects: fx.Effect) Orchestrator

Add multiple effects to run in parallel.

Args

  • *effects : Variable number of Effect objects to run simultaneously.

Returns

Orchestrator : Self for method chaining.

Then

then(effect: fx.Effect) Orchestrator

Add a single effect to the timeline.

Args

  • effect : The Effect to add.

Returns

Orchestrator : Self for method chaining.

Finalize

finalize() None

Finalize the orchestrator, preventing further edits.

Must be called before play(). Logs a warning if called multiple times.

Play

play() None

Start playing the animation from the beginning.

Logs a warning if not finalized or if there are no steps.

Pause

pause() None

Pause the animation at the current position.

Resume

resume() None

Resume a paused animation.

Stop

stop() None

Stop the animation and reset to the beginning.

Rewind

rewind() None

Reset the animation to the beginning without stopping.