getAnimationKeyframeCount.lua 733 B

123456789101112131415161718192021222324252627282930
  1. return {
  2. summary = 'Get the number of keyframes in a channel of an animation.',
  3. description = 'Returns the number of keyframes in a channel of an animation.',
  4. arguments = {
  5. animation = {
  6. type = 'string | number',
  7. description = 'The name or index of an animation.'
  8. },
  9. channel = {
  10. type = 'number',
  11. description = 'The index of a channel in the animation.'
  12. }
  13. },
  14. returns = {
  15. count = {
  16. type = 'number',
  17. description = 'The number of keyframes in the channel.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = { 'animation', 'channel' },
  23. returns = { 'count' }
  24. }
  25. },
  26. related = {
  27. 'ModelData:getAnimationSmoothMode',
  28. 'ModelData:getAnimationKeyframe'
  29. }
  30. }