| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- return {
- summary = 'Get the transform of a node.',
- description = 'Returns the transform (position, scale, and rotation) of a node.',
- arguments = {
- index = {
- type = 'number',
- description = 'The index of a node.'
- },
- name = {
- type = 'string',
- description = 'The name of a node.'
- },
- origin = {
- type = 'OriginType',
- default = [['root']],
- description = [[
- Whether the transform should be returned relative to the root node or the node's parent.
- ]]
- }
- },
- returns = {
- x = {
- type = 'number',
- description = 'The x position of the node.'
- },
- y = {
- type = 'number',
- description = 'The y position of the node.'
- },
- z = {
- type = 'number',
- description = 'The z position of the node.'
- },
- sx = {
- type = 'number',
- description = 'The x scale of the node.'
- },
- sy = {
- type = 'number',
- description = 'The y scale of the node.'
- },
- sz = {
- type = 'number',
- description = 'The z scale of the node.'
- },
- 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', 'origin' },
- returns = { 'x', 'y', 'z', 'sx', 'sy', 'sz', 'angle', 'ax', 'ay', 'az' }
- },
- {
- arguments = { 'name', 'origin' },
- returns = { 'x', 'y', 'z', 'sx', 'sy', 'sz', 'angle', 'ax', 'ay', 'az' }
- }
- },
- related = {
- 'Model:getNodePosition',
- 'Model:setNodePosition',
- 'Model:getNodeOrientation',
- 'Model:setNodeOrientation',
- 'Model:getNodeScale',
- 'Model:setNodeScale',
- 'Model:getNodePose',
- 'Model:setNodePose',
- 'Model:animate'
- }
- }
|