getNodePosition.lua 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. return {
  2. summary = 'Get the local position of a node.',
  3. description = 'Returns local position of a node, relative to its parent.',
  4. arguments = {
  5. index = {
  6. type = 'number',
  7. description = 'The index of the node.'
  8. },
  9. name = {
  10. type = 'string',
  11. description = 'The name of the node.'
  12. }
  13. },
  14. returns = {
  15. x = {
  16. type = 'number',
  17. description = 'The x coordinate.'
  18. },
  19. y = {
  20. type = 'number',
  21. description = 'The y coordinate.'
  22. },
  23. z = {
  24. type = 'number',
  25. description = 'The z coordinate.'
  26. }
  27. },
  28. variants = {
  29. {
  30. arguments = { 'index' },
  31. returns = { 'x', 'y', 'z' }
  32. },
  33. {
  34. arguments = { 'name' },
  35. returns = { 'x', 'y', 'z' }
  36. }
  37. },
  38. related = {
  39. 'ModelData:getNodeOrientation',
  40. 'ModelData:getNodeScale',
  41. 'ModelData:getNodePose',
  42. 'ModelData:getNodeTransform'
  43. }
  44. }