Configure an IK controller
pose_set_ikToggle and configure a joint's inverse kinematics controller: enable or disable it, pin or unpin its target, allow stretch, and set chain length or bend direction.
Instructions
Turn the inverse kinematics controller of a joint on or off, pin or unpin its target, allow it to stretch, or change how many bones its chain covers. Enabling a controller creates it at the joint's current position, so the pose does not jump.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The id of the figure instance. | |
| frame | No | The place on the timeline to work on. Defaults to the playhead. | |
| pinned | No | Whether the target stays where it is when the figure moves. | |
| enabled | No | Whether the controller drives the joint. | |
| project | No | The id of an open project, from project_open. Defaults to the project used most recently. | |
| handleId | Yes | The joint whose controller to configure. | |
| chainLength | No | How many bones the chain covers. | |
| allowStretch | No | Whether the limb may stretch to reach the target. | |
| bendDirection | No | -1, 0 or 1: which way the knee bends. |