export_motion_trail
Composite every frame of a motion into one still image with progressive opacity fading, so you can judge arc, spacing, and squash at a glance instead of watching a GIF.
Instructions
Export every frame of a motion composited into one image, the oldest faintest.
The way to judge whether a whole motion reads: arc shape, spacing and squash are all
visible at once in a still image that can be studied, where a GIF moves on before a
defect can be seen, and `export_onion_skin` shows only a few frames either side of one.
Args:
filename: The sprite.
output: The image to write. Use .png: the fades are alpha, which a GIF cannot keep.
tag: Composite this tag's frames.
frames: Or these frames (1-based), in the order given. Pass neither for every
frame of the sprite, and not both.
scale: Integer upscaling of the output (default 6). The scaled image is held to
the same caps as any canvas.
overwrite: Replace `output` if it already exists (default False = no-clobber).
Frame i of n is drawn at opacity 255 * i / n, so the last is fully opaque and on top.
An opaque Background layer would bury every frame under the next, so when there is one
it is drawn once, as of the last frame, and the frames contribute their other layers.
Returns the frames used, the opacity each was drawn at, and whether a Background was
laid underneath.
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": {
"filename": "<filename>",
"output": "<output>"
},
"name": "export_motion_trail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| scale | No | Default: 6. | |
| frames | No | ||
| output | Yes | ||
| filename | Yes | ||
| overwrite | No | Default: false. |