spine_add_path_constraint
Adds a path constraint that places bones along a slot's path attachment and animates path.position to move them along the path.
Instructions
Add a path constraint: bones are placed along the path attachment shown in slot
(add one first with spine_add_attachment kind="path"). Animate "path.position" to move
them along it.
Args: position_mode: percent (position 0..1 of the path length) or fixed (in pixels). spacing_mode: length, fixed, percent or proportional (distance between the bones). rotate_mode: tangent, chain or chainScale. rotation: Rotation offset in degrees. position: Setup position along the path. spacing: Setup spacing between bones. mix_rotate / mix_x / mix_y: 0..1 influence (mix_y defaults to mix_x).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slot | Yes | ||
| bones | Yes | ||
| mix_x | No | ||
| mix_y | No | ||
| order | No | ||
| project | Yes | ||
| spacing | No | ||
| position | No | ||
| rotation | No | ||
| mix_rotate | No | ||
| rotate_mode | No | tangent | |
| spacing_mode | No | length | |
| position_mode | No | percent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |