Skip to content

Export Slices

Juan Gaspar García edited this page May 6, 2022 · 1 revision

Export a sprite sheet into individual files, each one named and grouped accordingly. Commissioned by Imvested for his Minecraft resource pack.

Usage

You have to set up your slices in your sprite first. Use the slice tool (alt. to the move tool) to create slices. Double-click a slice to edit its Name and User Data values. These values are used for the exported filename. You can use / (Linux/macOS) or \ (Windows) to nest folders.

Options

  • Output directory: The folder where to export. Note that you will specify a file, not a folder. This is because Aseprite's API doesn't support folder selection.
  • File name: The name of every exported file. The possible formatters are:
    • {spritename}: The name of the sprite to export.
    • {slicedata}: The user data of the slice.
    • {slicename}: The name of the slice.
  • Export format: File format of exported files.
  • Export scale: The scale at which to export. The resolution of the file will be multiplied by this number. Useful for media sharing.
  • Save sprite: If checked, the full sprite will be saved in the output directory.

Examples

  • A slice with name slice1 will be exported as slice1.png.
  • A slice with name slice2 and User Data group1 will be exported as group1/slice2.png.
  • A slice with name slice3 and User Data group1/subgroup1 will be exported as group1/subgroup1/slice3.png.

Note.- Examples made for Linux/macOS systems. Replace / with \ for Windows.

Clone this wiki locally