getAnimationProperty.lua 951 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. return {
  2. summary = 'Get the property targeted by the channel of an animation.',
  3. description = 'Returns the property 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. property = {
  20. type = 'AnimationProperty',
  21. description = [[
  22. The property (translation, rotation, scale, weights) affected by the keyframes.
  23. ]]
  24. }
  25. },
  26. variants = {
  27. {
  28. arguments = { 'index', 'channel' },
  29. returns = { 'property' }
  30. },
  31. {
  32. arguments = { 'name', 'channel' },
  33. returns = { 'property' }
  34. }
  35. },
  36. related = {
  37. 'ModelData:getAnimationNode',
  38. 'ModelData:getAnimationSmoothMode'
  39. }
  40. }