Model:setNodeScale

Edit

Sets or blends the scale of a node to a new scale. This sets the local scale of the node, relative to its parent.





Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
sxnumber The x scale.
synumber The y scale.
sznumber The z scale.
blendnumber1.0 A number from 0 to 1 indicating how much of the new scale to blend in. A value of 0 will not change the node's scale at all, whereas 1 will fully blend to the target scale.

Returns

Nothing

Arguments

NameTypeDefaultDescription
namestring The name of the node.
sxnumber The x scale.
synumber The y scale.
sznumber The z scale.
blendnumber1.0 A number from 0 to 1 indicating how much of the new scale to blend in. A value of 0 will not change the node's scale at all, whereas 1 will fully blend to the target scale.

Returns

Nothing

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
scaleVec3 The new scale.
blendnumber1.0 A number from 0 to 1 indicating how much of the new scale to blend in. A value of 0 will not change the node's scale at all, whereas 1 will fully blend to the target scale.

Returns

Nothing

Arguments

NameTypeDefaultDescription
namestring The name of the node.
scaleVec3 The new scale.
blendnumber1.0 A number from 0 to 1 indicating how much of the new scale to blend in. A value of 0 will not change the node's scale at all, whereas 1 will fully blend to the target scale.

Returns

Nothing

Notes

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

See also