Skip to content

Choose a tag to compare

@PKGaspi PKGaspi released this 31 Oct 11:07
e667c78

First release of Gaspi's Aseprite Scripts: Export Layers, Export Slices and Export Combinations.

Requires Aseprite v1.3 or newer (last tested on v1.3.18). See the wiki for installation and usage.

Changelog

All scripts

  • Exports run on a temporary copy of your sprite: your sprite is never modified, no undo history is added and it isn't marked as unsaved. Thanks to @phantomeye1931 for raising the undo-history problem in #28.
  • Settings are remembered between runs: output directory, file name, format and scale.
  • The output directory defaults to your sprite's folder.
  • Save sprite saves the sprite to its own file.
  • Animated sprites exported as PNG or JPG are saved as one file per frame (name_1.png, name_2.png, ...). GIF exports keep the animation in one file.
  • Fixed: names containing % broke exports.
  • Folders are created with Aseprite's API instead of shell commands.

Export Layers

  • New: Only visible layers option.
  • Trim crops to the layer's visible pixels and skips fully transparent layers.

Export Combinations

  • New: Only visible groups option.
  • Combinations are numbered from 1.
  • An error is shown when the sprite has no layer groups.
  • Sub-groups are exported as a whole when chosen.
  • Fixed: layers outside groups stopped combinations from being saved.

Export Slices

  • Fixed: duplicated slice names were saved as slice.png_2 instead of slice_2.png.

Installation

  1. Download the source code below.
  2. In Aseprite, go to File -> Scripts -> Open Scripts Folder.
  3. Copy the contents of the scripts folder into the opened folder.
  4. In Aseprite, go to File -> Scripts -> Re-scan Scripts Folder.