Model:getAnimationDuration

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


duration = Model:getAnimationDuration(index)

Arguments

NameTypeDescription
indexnumber The animation index.

Returns

NameTypeDescription
durationnumber The duration of the animation, in seconds.

duration = Model:getAnimationDuration(name)

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