Skip to content

A plugin for Aseprite which exports the created slices as individual images

License

Notifications You must be signed in to change notification settings

Linus045/export_slices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

export_slices plugin for Aseprite

Description

This plugin adds a new command that allows you to export slices as individual image files.

This plugin uses aseprites CLI --split-slices option to export the files.

See also my Aseprite Forum Post

Installation

Download the extension from the Releases tab.

Open Aseprite's extensions menu Edit->Preferences->Extensions and click Add Extension.

Select the export_slices.aseprite-extension file and that's it.

Usage

Create your sprites and slice them appropriately. The name of the slice will later determine the exported filename.

Here I created a few simple 16x16 sprites, each slice gets exported as an individual file:

Slicing Example

Exported slices

Click the new option in File->Linus045 Plugins->Export slices as individual images.

A Dialog with text entries will appear.

Export Dialog with text entries

Project File

The first one specifies the .aseprite project file that contains the slices. Simply enter the path to the project file or click the button next to the entry field to use your system's file selector.

Output Directory

The second text entry is the path to the output directory. As of now the aseprite plugin API does not have a dialog element to select a directory directly via the system's file selector. You can either enter the path manually/paste it in or use the file selector and select any file inside the output directory, the plugin will automatically use the file's parent directory as output directory.

File Format

The third text entry specifies the output file format. It is directly passed on to the --save-as CLI parameter.

Additional Arguments

The fourth text entry is used for custom CLI arguments see Aseprite CLI documentation for more info.

Export Button

After pressing the Export button a new dialog appears with the command to execute. This is simply to verify everything or if necessary fix mistakes. Normally you can just press Confirm and the plugin will now execute the command to export the slices.

Command confirm dialog

Afterwards an output dialog will open up showing the command output. Command output dialog

Note

This script actively executes the Aseprite with CLI argument --split-slices and passes in the project path and output directory.

About

A plugin for Aseprite which exports the created slices as individual images

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published