Animations
A global API used for control of Blockbench Animations
stopAll()
Stops all playing (and paused) animations
stopAll()
Returns
| Type | Description |
|---|---|
AnimationAPI | Returns self for chaining |
Example
animations:stopAll()
getPlaying()
Return a table with all playing animations
getPlaying()
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| hold | Boolean | Whether to include animations holding on last frame | false |
Returns
| Type | Description |
|---|---|
Table | A list of the currently playing animations |
Example
logTable(animations:getPlaying())
getAnimations()
Returns a table with all animations
getAnimations()
Returns
| Type | Description |
|---|---|
Table | A list of all animations in all models |
Example
logTable(animations:getAnimations())