pencil2d_add_frame
Add or replace a keyframe image in a Pencil2D bitmap layer, optionally positioning it or supplying base64 image data.
Instructions
Add or replace a keyframe image in a Pencil2D project bitmap layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | Keyframe number (1-based index). | |
| image_path | No | Absolute path to a PNG/JPEG image file to insert. | |
| layer_name | No | Name or ID of the bitmap layer (defaults to first bitmap layer). | |
| top_left_x | No | Canvas X offset (default centers image: -width/2). | |
| top_left_y | No | Canvas Y offset (default centers image: -height/2). | |
| base64_data | No | Optional base64-encoded image data (if image_path is not used). | |
| project_path | Yes | Path to the .pclx file. |