ModelData:getNodeTransform

Returns local transform (position, orientation, and scale) of a node, relative to its parent.


x, y, z, sx, sy, sz, angle, ax, ay, az = ModelData:getNodeTransform(index)

Arguments

NameTypeDescription
indexnumber The index of the node.

Returns

NameTypeDescription
xnumber The x coordinate.
ynumber The y coordinate.
znumber The z coordinate.
sxnumber The x scale.
synumber The y scale.
sznumber The z scale.
anglenumber The number of radians the node is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

x, y, z, sx, sy, sz, angle, ax, ay, az = ModelData:getNodeTransform(name)

Arguments

NameTypeDescription
namestring The name of the node.

Returns

NameTypeDescription
xnumber The x coordinate.
ynumber The y coordinate.
znumber The z coordinate.
sxnumber The x scale.
synumber The y scale.
sznumber The z scale.
anglenumber The number of radians the node is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Notes

For best results when animating, it's recommended to keep the 3 components of the scale the same.

See also