# Slices and Spritesheet

**URL:** <https://community.aseprite.org/t/slices-and-spritesheet/15714>\
**Category:** Help\
**Created:** [September 15, 2022, 4:51am UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714 "2022-09-15T04:51:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hexcode](https://community.aseprite.org/letter_avatar/hexcode/32/6_449c533f586939b6e5f246632a46421f.png) [@hexcode](https://community.aseprite.org/u/hexcode)\
**Post date:** [September 15, 2022, 4:51am UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/1 "2022-09-15T04:51:56Z")

</div>

Hello, is there a way to use slices and save to spritesheets? This is what I have tried to do in my batch file:  
But it simply saves a spritesheet of the entire file.

```auto
%ASEPRITE% %FILENAME% --slice East --sheet East/%SAVEFILENAME%E.png

```

---

<div class="post-metadata">

**Author:** ![eishiya](https://community.aseprite.org/user_avatar/community.aseprite.org/eishiya/32/902_2.png) [@eishiya](https://community.aseprite.org/u/eishiya)\
**Post date:** [September 15, 2022, 12:45pm UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/2 "2022-09-15T12:45:12Z")

</div>

Are you asking about taking slices on a still image and packing them into a spritesheet, or making spritesheets out of animated slices?

I am pretty sure there is not a built-in way to do either and the spritesheet feature ignores slices entirely, you’ll need to do this work yourself (i.e. rearrange the art, or crop and export slice by slice). Scripts can automate this though. I’m not Lua-savvy enough to write this for you, but perhaps if you explain which you mean, someone else could help.

---

<div class="post-metadata">

**Author:** ![hexcode](https://community.aseprite.org/letter_avatar/hexcode/32/6_449c533f586939b6e5f246632a46421f.png) [@hexcode](https://community.aseprite.org/u/hexcode)\
**Post date:** [September 15, 2022, 9:48pm UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/3 "2022-09-15T21:48:05Z")

</div>

Hi Eishiya,  
I was trying to use slices to export a spritesheet from an animated .ase that contains multiple character animations.

I found a way to do it. But as you mentioned, its not an aseprite feature. I created a batch file to --slice and --save-as the single frames. Then batch process the single frames into a --sheet, deleting the single frames after. It’s a bit lengthy, but it works great by breaking down the steps as such in a batch file.

---

<div class="post-metadata">

**Author:** ![eishiya](https://community.aseprite.org/user_avatar/community.aseprite.org/eishiya/32/902_2.png) [@eishiya](https://community.aseprite.org/u/eishiya)\
**Post date:** [September 15, 2022, 10:09pm UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/4 "2022-09-15T22:09:09Z")

</div>

Glad you found something that works for you!

FWIW the intended way to handle multiple animations in Aseprite is to have them in sequence rather than all at once, so the document only shows one animation at a time. Then, you can have the spritesheet include only the chosen animation(s).

---

<div class="post-metadata">

**Author:** ![hexcode](https://community.aseprite.org/letter_avatar/hexcode/32/6_449c533f586939b6e5f246632a46421f.png) [@hexcode](https://community.aseprite.org/u/hexcode)\
**Post date:** [September 15, 2022, 10:22pm UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/5 "2022-09-15T22:22:47Z")

</div>

They are in sequence. In 8 varying directions at once + other animations in other directions as well.

---

<div class="post-metadata">

**Author:** ![eishiya](https://community.aseprite.org/user_avatar/community.aseprite.org/eishiya/32/902_2.png) [@eishiya](https://community.aseprite.org/u/eishiya)\
**Post date:** [September 15, 2022, 11:18pm UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/6 "2022-09-15T23:18:59Z")

</div>

I mean, the directions in that case should be in sequence as well, rather than displayed all at once.

---

<div class="post-metadata">

**Author:** ![hexcode](https://community.aseprite.org/letter_avatar/hexcode/32/6_449c533f586939b6e5f246632a46421f.png) [@hexcode](https://community.aseprite.org/u/hexcode)\
**Post date:** [September 15, 2022, 11:50pm UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/7 "2022-09-15T23:50:17Z")

</div>

Thank you for the unsolicited advice on how to organise my files.

---

<div class="post-metadata">

**Author:** ![eishiya](https://community.aseprite.org/user_avatar/community.aseprite.org/eishiya/32/902_2.png) [@eishiya](https://community.aseprite.org/u/eishiya)\
**Post date:** [September 16, 2022, 2:56am UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/8 "2022-09-16T02:56:04Z")

</div>

I was not advising you on how to organise your files - your arrangement makes it easier to make sure the animations match, and is a fairly common way of working. I was only explaining Aseprite’s intended workflow, which is the likely reason why slices don’t play well with spritesheets.

---

<div class="post-metadata">

**Author:** ![hexcode](https://community.aseprite.org/letter_avatar/hexcode/32/6_449c533f586939b6e5f246632a46421f.png) [@hexcode](https://community.aseprite.org/u/hexcode)\
**Post date:** [September 16, 2022, 3:39am UTC](https://community.aseprite.org/t/slices-and-spritesheet/15714/9 "2022-09-16T03:39:01Z")

</div>

Thank you for being helpful. I understand now 🙂
