ModelData:getAnimationKeyframe
EditReturns a single keyframe in a channel of an animation.
time, ... = ModelData:getAnimationKeyframe(animation, channel, keyframe)Arguments
| Name | Type | Description |
| animation | number | The name or index of an animation. |
| channel | number | The index of a channel in the animation. |
| keyframe | number | The index of a keyframe in the channel. |
Returns
| Name | Type | Description |
| time | number | The timestamp of the keyframe. |
| ... | number | The data for the keyframe (3 or more numbers, depending on the property). |
Notes
The number of values returned after time depends on the AnimationProperty targeted by the channel:
translation: 3 numbersrotation: 4 numbers (returned as raw quaternion components)scale: 3 numbersweights: variable, contains 1 number for each blend shape in the node