Model:setNodeScale

Sets or blends the scale of a node to a new scale.


Model:setNodeScale(index, scale, blend)

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
scaleVec3 The target scale. Can also be provided as 3 numbers.
blendnumber1.0 A number from 0 to 1 indicating how much of the target 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


Model:setNodeScale(name, scale, blend)

Arguments

NameTypeDefaultDescription
namestring The name of the node.
scaleVec3 The target scale. Can also be provided as 3 numbers.
blendnumber1.0 A number from 0 to 1 indicating how much of the target 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 components of the scale the same.

See also