getAnimations

getAnimations

Returns a list of all animations in the scene.

Signature

getAnimations(): Promise<string[]>

Parameters

None.

Returns

Promise<string[]> — Array of animation names.

Usage

const animations = await api.getAnimations();
console.log(animations); // ["Open", "Close", "Spin"]

Last updated