Overview
Saves an Aseprite document as an .aseprite file. This is the endpoint of
the Aseprite workflow, writing processed or generated PixPipeline results back
into a form that Aseprite can open.
Usage tips
- The default is
Disabledto prevent accidental saves. Switch toCreateIfMissingorOverwriteonly when you intend to write the file. - There are two entry paths for writing back: use
image_to_asepritefor a single image orspritesheet_to_asepritefor an animation, converting it to a document before this node.
Related nodes
aseprite_load— the loading sideimage_to_aseprite/spritesheet_to_aseprite— create the document upstreamase_layer_select— narrows the layers before saving
Save modes
Disabled- Does not save, serialize the document, or validate file contents.
CreateIfMissing- Saves only if the file does not exist yet.
Overwrite- Overwrites an existing file.
- Skips an unnecessary write when the bytes are identical.
Read this first
- This is a side-effect node.
- It writes a real file during evaluation.
- It starts in
Disabledmode to prevent accidental saves.
Basic workflow
AsepriteLoad
-> AseLayerSelect
-> AsepriteExport
This loads an Aseprite file, retains only the required layers, and saves the result to another file.
Example: Write back a processed image
AsepriteLoad
-> AseFrameSelect
-> Outline
-> ImageToAseprite
-> AsepriteExport
This extracts and processes one frame, then saves the result as a flat Aseprite document.
Example: Write back a sprite sheet
FxBakeSpriteSheet
-> SpriteSheetToAseprite
-> AsepriteExport
This saves an animation built in PixPipeline as an Aseprite timeline.
When to use it
- To write back an Aseprite-derived document after selecting layers or frames
- To save an
AsepriteFilecreated in the graph - To save a flat document produced by
ImageToAsepriteorSpriteSheetToAseprite
Example
path = hero_body_only.asepritesave_mode = Overwrite
During evaluation, the document connected to ase is saved to that path.
When a save occurs, _saved = true.
Supported data and discarded data
- The output file always uses RGBA color mode. Indexed information is not restored even if the input document originated in Indexed mode.
- Normal and Group layers, frames, tags, and the palette are written. Cells containing only transparent pixels are omitted from the file.
- Original cell x/y offsets, cell opacity, and linked-cel relationships are not restored because they are materialized into canvas images during loading.
- Tilemap contents, slices, and user data are not exported.
- Unknown blend modes fall back to
normal.
Notes
- An empty
pathdoes not save anything. - Omitting the extension appends
.aseprite. When saving is enabled, any extension other than.aseor.asepriteis an explicit error; Aseprite bytes are never written under a misleading format extension. Disableddoes not validate either the extension or serialized contents.- v1 does not aim to round-trip every piece of Aseprite metadata perfectly.
- Some fine-grained editor-specific settings may not be preserved.
- This stage establishes the basic "load, select, and save" I/O workflow in PixPipeline.