ModelData:getAnimationDuration

Edit

Returns the duration of an animation.



Arguments

NameTypeDescription
indexnumber The index of the animation.

Returns

NameTypeDescription
durationnumber The duration of the animation, in seconds.

Arguments

NameTypeDescription
namestring The name of the animation.

Returns

NameTypeDescription
durationnumber The duration of the animation, in seconds.

Notes

The duration of the animation is calculated as the latest timestamp of all of its channels.

See also