AnimatedItem.animation property

Methods

on_finish(self, callback: Callable[[], None]) -> None

Creates a handler that triggers when the current animation completes.

on_track_time(self, time: float, callback: Callable[[], None]) -> None

Creates a handler that triggers on specified animation track time for the current animation.

play(self, track: str) -> None

Plays an animation track on this item.

play(self, track: str, start_time: float, end_time: float) -> None

Plays an animation track on this item with defined startTime and endTime.

play_looping(self, track: str) -> None

Plays a looping animation track on this item.

play_looping(self, track: str, start_time: float, end_time: float) -> None

Plays a looping animation track on this item with defined startTime and endTime.

play_queued(self, track: str) -> None

Adds an animation to the playback queue.

stop(self) -> None

Stops playback of an animation and sets this item to its default pose.

Properties

readonly playing bool

Returns true if an animation is playing on this item.

readonly length float
readonly name str

Returns the name of the currently playing animation.

speed float

Defines the playback speed of all animations on this item

readonly time float
use_normalized_time bool

Toggles use of normalized time for animation methods on this item. Default is true.