ModelData:getAnimationDuration
EditReturns the duration of an animation in the model, in seconds.
duration = ModelData:getAnimationDuration(animation)Arguments
| Name | Type | Description |
| animation | string | number | The name or index of an animation. |
Returns
| Name | Type | Description |
| duration | number | The duration of the animation, in seconds. |
Notes
The duration of an animation is calculated as the largest timestamp of all of its keyframes.