| 12345678910111213141516171819202122232425262728293031323334353637 |
- return {
- summary = 'Get the index of the skin used by a node.',
- description = [[
- Returns the index of the skin used by a node. Skins are collections of joints used for skeletal
- animation. A model can have multiple skins, and each node can use at most one skin to drive the
- animation of its meshes.
- ]],
- arguments = {
- index = {
- type = 'number',
- description = 'The index of the node.'
- },
- name = {
- type = 'string',
- description = 'The name of the node.'
- }
- },
- returns = {
- skin = {
- type = 'number',
- description = 'The index of the node\'s skin, or nil if the node isn\'t skeletally animated.'
- }
- },
- variants = {
- {
- arguments = { 'index' },
- returns = { 'skin' }
- },
- {
- arguments = { 'name' },
- returns = { 'skin' }
- }
- },
- related = {
- 'ModelData:getSkinCount'
- }
- }
|