spine_add_ik_constraint
Adds an inverse kinematics constraint so a bone or two-bone limb chain reaches a target, with adjustable mix, bend direction, softness, and scaling.
Instructions
Add an IK constraint: 1 bone points at the target, 2 bones (parent, direct child) bend like a limb so the child's tip reaches the target. Animate it with timeline "ik".
Args:
bones: [bone] or [upper, lower], e.g. ["thigh", "shin"].
target: Bone to reach (must not be one of bones or their children), e.g. "foot-target".
mix: 0..1 influence.
bend_positive: Bend direction of a 2-bone chain.
softness: Distance before full extension where the chain starts to slow down.
compress / stretch / uniform: Scale the bone(s) to reach the target.
order: Constraint order (default: after existing constraints).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mix | No | ||
| name | Yes | ||
| bones | Yes | ||
| order | No | ||
| target | Yes | ||
| project | Yes | ||
| stretch | No | ||
| uniform | No | ||
| compress | No | ||
| softness | No | ||
| bend_positive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |