Opentoonz Tween Frames
opentoonz_tween_framesGenerate tweened in-between frames between two poses and save them as a PNG sequence. This replaces GUI-only auto-inbetweening for headless OpenToonz animation workflows.
Instructions
Tween one drawing from a start pose to an end pose, saving the sequence.
OpenToonz's auto-inbetweening is GUI-only, so the in-betweens are rendered here and saved as /drawings/<level_name>.%04d.png, ready for opentoonz_import_images_as_level.
start/end each describe the drawing: {"path": "/abs/sprite.png", "xy": [x, y], "scale": 1.0, "rotation": 0, "opacity": 1.0}. xy is the drawing's CENTRE, so motion and rotation share one anchor; omitted fields stay neutral. ease=true leaves and arrives gently instead of at a constant speed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| ease | No | ||
| start | Yes | ||
| width | No | ||
| frames | Yes | ||
| height | No | ||
| workspace | Yes | ||
| background | No | #181a2e | |
| level_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |