swing_part
Animate a pixel-art wing, arm, tail, or ear swinging around its joint across frames. Define the part's outline and pivot, then set per-frame angles to rotate it without opening gaps at the body.
Instructions
Swing a wing, arm, tail or ear about its joint across frames. outline
is a polygon round the part, in canvas pixels [[x, y], ...]; keep it to
the part itself (not the face or chest beside it). pivot is the joint.
keys, one per frame (frames are made as needed): {"frame": 2, "angle": 10, "dx": 0, "dy": -1, "ms": 90}, angle in degrees clockwise.
Where the part met the body, a band of shadow (the part's darkest
colour by default) stays underneath, so turning never opens a gap, and the
part's light outer halo is dropped so it doesn't streak. Small angles (up to
about 15) look best. One undo step. Headless: pass file.
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": {
"outline": "<outline>",
"pivot": "<pivot>",
"keys": "<keys>"
},
"name": "swing_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| band | No | ||
| file | No | ||
| keys | Yes | ||
| layer | No | ||
| pivot | Yes | ||
| shadow | No | ||
| outline | Yes |