getAnimationChannelCount.lua 797 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. return {
  2. summary = 'Get the number of channels in an animation.',
  3. description = [[
  4. Returns the number of channels in an animation.
  5. A channel is a set of keyframes for a single property of a node.
  6. ]],
  7. arguments = {
  8. index = {
  9. type = 'number',
  10. description = 'The index of an animation.'
  11. },
  12. name = {
  13. type = 'string',
  14. description = 'The name of an animation.'
  15. }
  16. },
  17. returns = {
  18. count = {
  19. type = 'number',
  20. description = 'The number of channels in the animation.'
  21. }
  22. },
  23. variants = {
  24. {
  25. arguments = { 'index' },
  26. returns = { 'count' }
  27. },
  28. {
  29. arguments = { 'name' },
  30. returns = { 'count' }
  31. }
  32. },
  33. related = {
  34. 'ModelData:getAnimationNode',
  35. 'ModelData:getAnimationProperty'
  36. }
  37. }