Model:getAnimationDuration

Edit

Returns the duration of an animation in the Model, in seconds.



Arguments

NameTypeDescription
indexnumber The animation index.

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 an animation is calculated as the largest timestamp of all of its keyframes.

See also