Kim S Posted June 3, 2024 Posted June 3, 2024 I am trying to split up a sprite sheet and export each sprite as a separate file. I think I can do this with the Slice tool from the Export Persona. I figured out how to create a single slice by drawing a box around a single sprite, but I don't want to draw boxes by hand around each sprite. The Affinity Help page on the Slice Tool says, "As an alternative to drawing slices using the tool, selected objects and layers can also be made into automatically-sized slices." The pixel size of each sprite is the same, so I would think I should be able to slice the entire spread into that size grid, but I can't find more information on how to do that! Could someone point me to information on how to do this or give me the steps to perform? Thx! Quote
Alfred Posted June 3, 2024 Posted June 3, 2024 The technique demonstrated in the post linked below might suit your needs. Just use straight lines instead of curved ones. NotMyFault 1 Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)
firstdefence Posted June 4, 2024 Posted June 4, 2024 8 hours ago, Alfred said: The technique demonstrated in the post linked below might suit your needs. Just use straight lines instead of curved ones. I think someone has crossed wires lol! Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions
firstdefence Posted June 4, 2024 Posted June 4, 2024 Is the sprite sheet a single pixel layer? in which case you will have no other choice to to either create slice boxes for each sprite or carve up the single pixel layer into separate layers and use guides to create the grid to have the selection tool snap to. This way all the sprites will have the same sized dimensions. See what I have done in the screenshot below. Sprite sheet used as an example is from this tutorial: https://code.tutsplus.com/an-introduction-to-spritesheet-animation--gamedev-13099t Because the sprites are the same dimension you only have to make a selection once, then you can move that selection to create a new layer for each sprite... So the steps would be... Select the background layer Make a selection of the first sprite (top left) using the rectangle selection tool Press Cmd+X and then Cmd+V to cut and paste to a new layer. Rinse and repeat steps 1 through 3 changing the selection to the next sprite. From there you can go to export persona and use the layer panel to make slices by selected all the layers to want slices made from and clicking Create Slice Note: personally I think the button should change to plural (create slices) when multiple layers are selected Alfred 1 Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions
Alfred Posted June 4, 2024 Posted June 4, 2024 41 minutes ago, firstdefence said: I think someone has crossed wires lol! Like me, maybe? LOL! Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)
Alfred Posted June 4, 2024 Posted June 4, 2024 22 minutes ago, firstdefence said: Note: personally I think the button should change to plural (create slices) when multiple layers are selected Needless to say, I agree! An alternative would be to change the existing label to the all-purpose version, ‘Create slice(s)’. Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)
GarryP Posted June 4, 2024 Posted June 4, 2024 I’ve attached a video which shows a slightly different way to do this than the method shown in the thread that Alfred linked to above. (The grid of rectangles is produced with the Move Data Entry functionality which can be accessed by selecting the rectangle(s) and pressing Enter.) 2024-06-04 09-18-55.mp4 andreyshinami and Alfred 2 Quote
Kim S Posted June 4, 2024 Author Posted June 4, 2024 Thanks for all the ideas! I was hoping there was a more straightforward way to do this, like select a large area and then have an option to slice it up like you do for guides, either fixed values or percentages. But I shall use the suggested solutions for now. Thx again! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.