Skip to main content

modifier2d

2d · animation · 5 properties · 2D

Aims a 2D bone at a target node every frame, after the clip has posed the rig: look_at turns one bone toward the target, two_bone_ik bends a root, middle and tip chain so the tip reaches it.

In a scene, modifier2d is the node key that applies it. A script reaches the same properties through node.modifier2d.get() and node.modifier2d.set(table).

Properties

propertytypedefaultdescription
bonestringNode path to the driven bone, relative to this node; empty means this node. For two_bone_ik, the root of the chain
enabledbooltrueWhether the modifier runs; off leaves the clip's pose alone
flipboolfalseBend the two-bone chain the other way
kindenumlook_atAim one bone at the target, or bend a root, middle, tip chain so the tip reaches it One of look_at, two_bone_ik.
targetstringNode path to the point to aim at, relative to this node