ModelData:getAnimationKeyframeCount

Edit

Returns the number of keyframes in a channel of an animation.

count = ModelData:getAnimationKeyframeCount(animation, channel)

Arguments

NameTypeDescription
animationstring | number The name or index of an animation.
channelnumber The index of a channel in the animation.

Returns

NameTypeDescription
countnumber The number of keyframes in the channel.

See also