natiny.animator.set_mask
natiny.animator.set_mask(animator [, bone [, with_children]])
Confines this layer to one bone, and optionally to everything below it, so that it says nothing at all about the rest of the skeleton.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
animator |
number |
Animator handle from natiny.animator.create |
|
bone |
string |
nil |
Bone name to start at; nil or "" removes the mask |
with_children |
boolean |
true |
Whether the bones below it are included |
Example
-- A wave on the arms, over a run that keeps the legs.
natiny.animator.set_mask(arms, "Torso", true)
natiny.animator.set_weight(arms, 1.0)