Slice tool #721

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

Comments

Projects
None yet
2 participants
Owner

dacap commented Jul 10, 2015

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 dacap added the enhancement label Jul 10, 2015

This was referenced Jul 10, 2015

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

@dacap dacap added the slices label Oct 6, 2016

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

@dacap dacap self-assigned this Feb 18, 2017

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

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.

SolarLune commented Apr 24, 2017

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

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

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.

@dacap dacap modified the milestones: v1.2, v1.3 Sep 12, 2017

Hey, just wanted to pop up in here and ask if slices could serve the purpose of defining hitboxes / specific important zones when implemented? Or is that a different concept?

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