Model:getNodeScale

Returns the scale of a node.


x, y, z = Model:getNodeScale(index, origin)

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
originOriginType'root' Whether the scale should be returned relative to the root node or the node's parent.

Returns

NameTypeDescription
xnumber The x scale.
ynumber The y scale.
znumber The z scale.

x, y, z = Model:getNodeScale(name, origin)

Arguments

NameTypeDefaultDescription
namestring The name of the node.
originOriginType'root' Whether the scale should be returned relative to the root node or the node's parent.

Returns

NameTypeDescription
xnumber The x scale.
ynumber The y scale.
znumber The z scale.

Notes

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

See also