Giter VIP home page Giter VIP logo

export_slices's Introduction

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.

export_slices's People

Contributors

linus045 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.