save_sprite_as
Save a copy of a sprite to a new file path, optionally flattening layers. Use overwrite parameter to replace existing files.
Instructions
Save a copy of a sprite under a new path (optionally flattened).
The original file is left untouched. Useful for exporting an editable
.aseprite to another .aseprite, or snapshotting a version.
overwrite: Replace `new_filename` if it already exists (default False = no-clobber).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flatten | No | ||
| filename | Yes | ||
| overwrite | No | ||
| new_filename | Yes |