pencil2d_add_frames_batch
Insert multiple animation keyframes into a Pencil2D project in one batch from a list or sorted image directory, specifying start frame, layer, and step interval.
Instructions
Batch insert multiple animation keyframes into a project from a list or directory in a single operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | Step interval between frames (default 1). | |
| frames | No | List of keyframe objects to insert. | |
| layer_name | No | Target layer name when importing from directory. | |
| start_frame | No | Starting frame index when importing from directory (default 1). | |
| project_path | Yes | Path to the .pclx file. | |
| directory_path | No | Optional directory containing image frames to import in sorted order. |