render_onion_skin
Render a frame with neighboring frames as translucent ghosts and export as PNG to check animation motion continuity.
Instructions
Render a frame with neighboring frames as translucent onion-skin ghosts.
Produces a PNG of the given frame composited over ghosted copies of the surrounding frames — the batch-mode equivalent of Aseprite's onion skinning. Essential for checking motion continuity while animating: export it, open the PNG, and verify the in-between positions line up.
Args: filename: Aseprite file to read frame_index: Frame to render, starting at 1 output_filename: Output PNG path before: Number of previous frames to ghost (default 1) after: Number of following frames to ghost (default 1) scale: Integer nearest-neighbor scale factor (default 4) ghost_opacity: Opacity of ghost frames, 0-255 (default 100)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| frame_index | Yes | ||
| output_filename | Yes | ||
| before | No | ||
| after | No | ||
| scale | No | ||
| ghost_opacity | No |