Mobile app version of vmapp.org
Login or Join
Hamaas979

: Merge Photoshop groups each into their own single png I am looking for a script/way to automatically render all Ps groups in a project into their own single .png file (so one .png per Ps

@Hamaas979

Posted in: #AdobePhotoshop #PhotoshopScripting

I am looking for a script/way to automatically render all Ps groups in a project into their own single .png file (so one .png per Ps group).

I have found scripts that export all layers as .png but that's not useful.
Also having to go in and select the layer groups that I want is a bit annoying because I will always want one PNG of every group.

Anyone that can help?

ps: I have a script that exports all layers into a .png, so having a script that automatically merges groups into one layer would do aswel!

Thank you!

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas979

3 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi4787994

Photoshop’s Generator can do this. There’s two steps needed.


Rename your groups to include .png as a suffix.
Turn on File → Generate → Image Assets.


Here’s a file I have set up to generate PNGs based on groups. Note that bitmap masks or vector masks on the groups can be used to control the exported image size and cropping.



Turning on File → Generate → Image Assets creates a folder next to your PSD with all the assets.



Here’s some example documents with Generator set up for exporting, if you’d like to see it in action. Generator can do even more, using additional info in the layer or group name (for image size, exporting multiple formats etc).

10% popularity Vote Up Vote Down


 

@Alves566

Layer compositions are designed to work in the way you want to. Creating multiple versions of a design. For the same purpose Photoshop is equipped with a script for exporting those. Just go to File > scripts > layers comps to files

If you have a file where groups are used instead of layer compositions use a script for changing those to comps elevatexd.com/blog/photoshop-scripts-and-extensions-to-improve-your-workflow

10% popularity Vote Up Vote Down


 

@Cody3331749

I don't believe Photoshop has an automated way of exporting many different specific layer groupings (like identifying, separating, and exporting different individual "lamp" and "bench" folders as separate PNG's). Try going to the parent-most folder of "lamp", for example, right clicking the layer and selecting "quick export as PNG". This should only export the contents of that folder. Important to note that "quick export to PNG" has trouble detecting layers in extensively deep folder groupings sometimes. If you're having trouble try right clicking the folder and choosing "export as" instead then selecting PNG.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme