import_image_as_layer
Import an image file into an existing or new layer of an Aseprite sprite. Useful for adding reference images or composing pre-made parts.
Instructions
Import an image file (PNG, etc.) into a layer of the sprite.
Useful for bringing in reference images or composing pre-made parts. The layer is created if it does not exist. Works best when the sprite is in RGB color mode.
Args: filename: Aseprite file to modify image_path: Image file to import layer_name: Layer to place the image on frame_index: Frame index starting at 1 (default 1) x: X position for the image's top-left corner (default 0) y: Y position for the image's top-left corner (default 0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| image_path | Yes | ||
| layer_name | Yes | ||
| frame_index | No | ||
| x | No | ||
| y | No |