Slice tool #721

Open
dacap opened this Issue Jul 10, 2015 · 3 comments

Comments

Projects

In progress in Next release

2 participants
Owner

dacap commented Jul 10, 2015 edited

Add a tool to mark rectangular (any shape?) regions and label them. Then we should be able to export the specific slice/region using #645.

  • add --list-slices (print slices on output or/and export to json file)
  • support to export only the area of a specific slice (e.g. --slice name)
  • support to export all slices like --save-as sheet-{slice}.png (like a --split-slices)
  • animation support for slices

dacap added the enhancement label Jul 10, 2015

This was referenced Jul 10, 2015

dacap added this to the v1.4 milestone Jul 10, 2015

dacap added the hotspot label Oct 6, 2016

@dacap dacap modified the milestone: v1.2, v1.5 Feb 18, 2017

dacap self-assigned this Feb 18, 2017

dacap added to In progress in Next release Feb 18, 2017

dacap moved from In progress to Some work done in Next release Feb 24, 2017

dacap moved from Some work done to In progress in Next release Mar 6, 2017

@dacap dacap added a commit that referenced this issue Mar 6, 2017

@dacap dacap Add basic implementation of slice tool (#721) to modify theme parts
It still need support to export to .aseprite-data as <slice> XML elements, and animation support.
643cad5

SolarLune commented Apr 24, 2017 edited

Hey, it's cool to see slices in Aseprite, but are they being exported? I don't see anything in the outputted JSON file, and I don't see any "aseprite-data" file options...?

EDIT: And I do have the Slices checkbox selected in the Export dialog.

Owner

dacap commented Apr 24, 2017 edited

Hi @SolarLune, you have two options: one using --list-slices and --data in the CLI or using a special .aseprite-data file e.g. your sprite is player.ase you can create a player.aseprite-data with this content:

<?xml version="1.0" encoding="utf-8"?>
<sprite>
  <slices />
</sprite>

This is an undocumented feature, I need to write more details about this.

EDIT: Tomorrow I'll test the Slices checkbox in the export dialog just in case, something might not be working (did you try using other checkbox like layers too?)

SolarLune commented Apr 24, 2017 edited

This is an undocumented feature, I need to write more details about this.

Ah, OK. I guess I'll wait - seems like that file would basically just be empty tagged like that...? Not sure if I get what it's supposed to do. A write-up would be helpful (though I usually get by with the GUI, so no rush, for me).

something might not be working (did you try using other checkbox like layers too?)

Yeah, the other options work, but just not the Slices option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment