| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- return {
- summary = 'Get the local transform of a node.',
- description = [[
- Returns local transform (position, orientation, and scale) of a node, relative to its parent.
- ]],
- arguments = {
- index = {
- type = 'number',
- description = 'The index of the node.'
- },
- name = {
- type = 'string',
- description = 'The name of the node.'
- }
- },
- returns = {
- x = {
- type = 'number',
- description = 'The x coordinate.'
- },
- y = {
- type = 'number',
- description = 'The y coordinate.'
- },
- z = {
- type = 'number',
- description = 'The z coordinate.'
- },
- sx = {
- type = 'number',
- description = 'The x scale.'
- },
- sy = {
- type = 'number',
- description = 'The y scale.'
- },
- sz = {
- type = 'number',
- description = 'The z scale.'
- },
- angle = {
- type = 'number',
- description = 'The number of radians the node is rotated around its axis of rotation.'
- },
- ax = {
- type = 'number',
- description = 'The x component of the axis of rotation.'
- },
- ay = {
- type = 'number',
- description = 'The y component of the axis of rotation.'
- },
- az = {
- type = 'number',
- description = 'The z component of the axis of rotation.'
- }
- },
- variants = {
- {
- arguments = { 'index' },
- returns = { 'x', 'y', 'z', 'sx', 'sy', 'sz', 'angle', 'ax', 'ay', 'az' }
- },
- {
- arguments = { 'name' },
- returns = { 'x', 'y', 'z', 'sx', 'sy', 'sz', 'angle', 'ax', 'ay', 'az' }
- }
- },
- notes = [[
- For best results when animating, it's recommended to keep the 3 components of the scale the
- same.
- ]],
- related = {
- 'ModelData:getNodePosition',
- 'ModelData:getNodeOrientation',
- 'ModelData:getNodeScale',
- 'ModelData:getNodePose'
- }
- }
|