getNodeMeshes.lua 890 B

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. summary = 'Get the indices of meshes attached to a node.',
  3. description = [[
  4. Returns a table of mesh indices attached to a node. Meshes define the geometry and materials of
  5. a model, as opposed to the nodes which define the transforms and hierarchy. A node can have
  6. multiple meshes, and meshes can be reused in multiple nodes.
  7. ]],
  8. arguments = {
  9. index = {
  10. type = 'number',
  11. description = 'The index of the node.'
  12. },
  13. name = {
  14. type = 'string',
  15. description = 'The name of the node.'
  16. }
  17. },
  18. returns = {
  19. meshes = {
  20. type = 'table',
  21. description = 'A table with the node\'s mesh indices.'
  22. }
  23. },
  24. variants = {
  25. {
  26. arguments = { 'index' },
  27. returns = { 'meshes' }
  28. },
  29. {
  30. arguments = { 'name' },
  31. returns = { 'meshes' }
  32. }
  33. },
  34. related = {
  35. 'ModelData:getMeshCount'
  36. }
  37. }