tween_cel_positions
Interpolates X and Y positions of cels in a layer across a specified frame range to create smooth movement. Optionally creates missing cels or copies cel image from a source frame.
Instructions
Tween cel positions linearly across a frame range.
Args: filename: Name of the Aseprite file to modify layer_name: Layer name to target start_frame: Starting frame index (1-based) end_frame: Ending frame index (1-based, inclusive) start_x: Starting X position in pixels start_y: Starting Y position in pixels end_x: Ending X position in pixels end_y: Ending Y position in pixels create_missing_cels: Create missing cels during tween source_frame_index: Optional frame to copy the cel image from
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| start_frame | Yes | ||
| end_frame | Yes | ||
| start_x | Yes | ||
| start_y | Yes | ||
| end_x | Yes | ||
| end_y | Yes | ||
| create_missing_cels | No | ||
| source_frame_index | No |