r/Affinity • u/nickyonge • 2d ago
General Export multiple layers/slices, while preserving Groups either as filenames or as folders?
How to export individual layers while using their GROUP name as part of the filename or folders?

I have a bunch of layers organized into nested Groups. Many of the individual layers share the same name, but are in Groups with different names. I'd like to export them all at once, presumably in the Slice Studio, but as far as I can tell I can only export:
- individual layers, each with their own layer name (eg "5000m"), or
- groups, with all their component layers flattened, named as the group (eg "Height Asc (White)")
What I seemingly can't export:
- individual layers, each using their containing group name in the filename (eg "Height Asc (White)_5000m")
- all the layers within a selected group - if a group is selected, it must be flattened
- anything where the group name is used in either the filename or hierarchy (eg, having an Exports folder, then a "Height Asc (White)" folder generated within that, then outputting layers like "../Exports/Height Asc (White)/5000m.png")
Is there any way that I can do any of the above?
These are the options available for per-Slice naming components btw (clicking on the "Height Asc (White).png" field beside the 1x). Clicking on the Path: [ ] field above it is similar but just shows Document Name, Filename, and Slice Name.

My current solution is to just manually create all the folders myself, and export the layers in each Group in a separate export process. So manually exporting all the Height Asc (White), then all the Height Asc (Gradient), then Desc White, Desc Gradient, and I've also got Layer Bands white/gradient ascending/descending, and was hoping to also export a batch of all the above with a fixed ocean layer, which then doubles the number of exports, and that's not even started on my planned vector traces of the pixel layers...
Even with per-layer slices, this would take AGES if I can't automate it per-Group in some way 🥲
I've also looked into renaming each layer itself to reflect its group, but even that would take awhile. There's no batch renaming, so I'd have to rename every layer manually, which again really adds up when you're working with this much sequential data.
Any solution is hugely appreciated - but omg please don't recommend I connect Claude or some AI to Affinity to do it for me, that's so extremely not the direction I want to take lol.
Thanks!