spine_add_transform_constraint
Adds a Spine transform constraint so chosen bones copy a source bone's rotation, position, scale, or shear, with mix, offset, local, and additive options.
Instructions
Add a transform constraint: bones copy the source bone's rotation, position, scale
and/or shear (e.g. a cape following the torso, wheels sharing rotation). Animate it with
timeline "transform". Written in the file's format (4.3 "constraints" list or 4.2 "transform").
Args:
properties: What to copy, any of rotate, x, y, scaleX, scaleY, shearY (default all).
mix: 0..1 influence per property, e.g. {"rotate": 1, "x": 0.5} (default 1).
offsets: Constant offsets per property, e.g. {"rotate": 90, "x": 10}.
local: Use local instead of world transforms.
additive: Add to the bones' own transform instead of replacing it (4.2: "relative").
clamp: (4.3) Clamp converted values to the mapping's max.
mapping: (4.3) Raw property map for cross-property links, e.g.
{"rotate": {"to": {"x": {"scale": 2}}}} turns the source's rotation into x movement.
Overrides properties.
order: Update order among constraints (default: last).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mix | No | ||
| name | Yes | ||
| bones | Yes | ||
| clamp | No | ||
| local | No | ||
| order | No | ||
| source | Yes | ||
| mapping | No | ||
| offsets | No | ||
| project | Yes | ||
| additive | No | ||
| properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |