save_sprite_as
Save a copy of a sprite to a new path, optionally flattened, leaving the original untouched. Overwrite if specified.
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 | Default: false. | |
| filename | Yes | ||
| overwrite | No | Default: false. | |
| new_filename | Yes |