getAnimationNode.lua 884 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. return {
  2. summary = 'Get the node targeted by the channel of an animation.',
  3. description = 'Returns the index of a node targeted by an animation\'s channel.',
  4. arguments = {
  5. index = {
  6. type = 'number',
  7. description = 'The index of an animation.'
  8. },
  9. name = {
  10. type = 'string',
  11. description = 'The name of an animation.'
  12. },
  13. channel = {
  14. type = 'number',
  15. description = 'The index of a channel in the animation.'
  16. }
  17. },
  18. returns = {
  19. node = {
  20. type = 'number',
  21. description = 'The index of the node targeted by the channel.'
  22. }
  23. },
  24. variants = {
  25. {
  26. arguments = { 'index', 'channel' },
  27. returns = { 'node' }
  28. },
  29. {
  30. arguments = { 'name', 'channel' },
  31. returns = { 'node' }
  32. }
  33. },
  34. related = {
  35. 'ModelData:getAnimationProperty',
  36. 'ModelData:getAnimationSmoothMode'
  37. }
  38. }