getNodeSkin.lua 888 B

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. summary = 'Get the index of the skin used by a node.',
  3. description = [[
  4. Returns the index of the skin used by a node. Skins are collections of joints used for skeletal
  5. animation. A model can have multiple skins, and each node can use at most one skin to drive the
  6. animation of its meshes.
  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. skin = {
  20. type = 'number',
  21. description = 'The index of the node\'s skin, or nil if the node isn\'t skeletally animated.'
  22. }
  23. },
  24. variants = {
  25. {
  26. arguments = { 'index' },
  27. returns = { 'skin' }
  28. },
  29. {
  30. arguments = { 'name' },
  31. returns = { 'skin' }
  32. }
  33. },
  34. related = {
  35. 'ModelData:getSkinCount'
  36. }
  37. }