ModelData:getAnimationDuration

Returns the duration of an animation.


duration = ModelData:getAnimationDuration(index)

Arguments

NameTypeDescription
indexnumber The index of the animation.

Returns

NameTypeDescription
durationnumber The duration of the animation, in seconds.

duration = ModelData:getAnimationDuration(name)

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