animate_rig
Pose a rigged character across frames using motion presets or interpolated pose keys, then write the result to a new layer for tweened sprite animation.
Instructions
Pose a rigged character over several frames and write them to out_layer.
Motion comes from a preset (idle, walk_side, attack, hurt, death; strength scales it) or
from keys: [{"frame": 1, "pose": {"arm_front": {"rotate": -30}, "torso": {"dy": 1},
"root": {"dx": 2, "rotate": 5, "pivot": [x,y]}}}, ...] interpolated over frames
(ease: ease_in_out | linear | hold). Parts turn with RotSprite about their pivots, children
follow parents, and joint gaps are filled from the source (rig "overlap"). feet [x,y] is
the pivot for whole-body rotations (default bottom centre). clean removes specks and orphan
pixels the rotation left. Frames are added if needed; the source layer is hidden.
Returns a summary and a view with onion skin.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"rig": "<rig>",
"out_layer": "<out_layer>"
},
"name": "animate_rig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rig | Yes | ||
| ease | No | ||
| feet | No | ||
| keys | No | ||
| path | Yes | ||
| clean | No | ||
| frames | No | ||
| preset | No | ||
| strength | No | ||
| durations | No | ||
| out_layer | Yes | ||
| flash_color | No | #ffffff | |
| hide_source | No | ||
| start_frame | No | ||
| source_frame | No | ||
| source_layer | No |