natiny.animator.set_weight

Lua
natiny.animator.set_weight(animator, weight [, fade])

Sets how much of the final pose this layer claims, over whatever the layers below it left, reaching it over fade seconds.

Parameters

Name Type Default Description
animator number Animator handle from natiny.animator.create
weight number 0 for silent, 1 to win outright; clamped to that range
fade number 0 Seconds to ramp there over; values at or below 0 set it at once

Example

Lua
--  Fade an upper-body layer in over a quarter of a second.
natiny.animator.set_weight(arms, 1.0, 0.25)