Model:setNodeScale
EditSets or blends the scale of a node to a new scale. This sets the local scale of the node, relative to its parent.
Arguments
Name | Type | Default | Description |
index | number | The index of the node. | |
sx | number | The x scale. | |
sy | number | The y scale. | |
sz | number | The z scale. | |
blend | number | 1.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
Name | Type | Default | Description |
name | string | The name of the node. | |
sx | number | The x scale. | |
sy | number | The y scale. | |
sz | number | The z scale. | |
blend | number | 1.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
Name | Type | Default | Description |
index | number | The index of the node. | |
scale | Vec3 | The new scale. | |
blend | number | 1.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
Name | Type | Default | Description |
name | string | The name of the node. | |
scale | Vec3 | The new scale. | |
blend | number | 1.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.