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
nodestring | number The name or index of a 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
nodestring | number The name or index of a node.
scalevector 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