getNodeParent.lua 726 B

1234567891011121314151617181920212223242526272829303132333435
  1. return {
  2. summary = 'Get the parent of a node.',
  3. description = 'Given a child node, this function returns the index of its parent.',
  4. arguments = {
  5. index = {
  6. type = 'number',
  7. description = 'The index of the child node.'
  8. },
  9. name = {
  10. type = 'string',
  11. description = 'The name of the child node.'
  12. }
  13. },
  14. returns = {
  15. parent = {
  16. type = 'number',
  17. description = 'The index of the parent.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = { 'index' },
  23. returns = { 'parent' }
  24. },
  25. {
  26. arguments = { 'name' },
  27. returns = { 'parent' }
  28. }
  29. },
  30. related = {
  31. 'ModelData:getNodeChildren',
  32. 'ModelData:getRootNode',
  33. 'Model:getNodeParent'
  34. }
  35. }