ModelData:getAnimationKeyframeCount

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


count = ModelData:getAnimationKeyframeCount(index, channel)

Arguments

NameTypeDescription
indexnumber The index of an animation.
channelnumber The index of a channel in the animation.

Returns

NameTypeDescription
countnumber The number of keyframes in the channel.

count = ModelData:getAnimationKeyframeCount(name, channel)

Arguments

NameTypeDescription
namestring The name of an animation.
channelnumber The index of a channel in the animation.

Returns

NameTypeDescription
countnumber The number of keyframes in the channel.

See also