getAnimationKeyframe.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. return {
  2. summary = 'Get a keyframe in a channel of an animation.',
  3. description = 'Returns a single keyframe in a channel of an animation.',
  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. keyframe = {
  18. type = 'number',
  19. description = 'The index of a keyframe in the channel.'
  20. }
  21. },
  22. returns = {
  23. time = {
  24. type = 'number',
  25. description = 'The timestamp of the keyframe.'
  26. },
  27. ['...'] = {
  28. type = 'number',
  29. description = 'The data for the keyframe (either 3 or 4 numbers depending on the property).'
  30. }
  31. },
  32. variants = {
  33. {
  34. arguments = { 'index', 'channel', 'keyframe' },
  35. returns = { 'time', '...' }
  36. },
  37. {
  38. arguments = { 'name', 'channel', 'keyframe' },
  39. returns = { 'time', '...' }
  40. }
  41. },
  42. related = {
  43. 'ModelData:getAnimationSmoothMode',
  44. 'ModelData:getAnimationKeyframeCount'
  45. }
  46. }