Advertisement


Script that export photoshop layer groups to PNG files?


Question

I need some help here :( I want to know if it is possible to have a script export my layer groups as individual PNG files?

Let say im creating a texture map for a rock, so I save the photoshop document as Rock.psd

Now I want to export each texture group as the photoshop document name with an prefix for each layer group.

Example: Albedo layer group as Rock_AM.png Diffuse layer group as Rock_CM.png Specular layer group as Rock_SM.png Roughness layer group as Rock_RM.png Gloss layer group as Rock_GM.png Metalness layer group as Rock_MM.png Displacement layer group as Rock_DM.png Normal layer group as Rock_NM.png Self Illumination layer group as Rock_IM.png

Can that be possible? But if a layer group is empty I will like the layer group to be ignored. I want only export the layer groups that has layers inside.

enter image description here

Any help or guide please?

Thx, Alex

2015/02/18
1
2
2/18/2015 12:35:00 PM

Accepted Answer

If you are using CS6 or older try this: http://www.peruho.com/web-design/export-your-assets-using-cut-and-slice-me/ It'll give you the options that photoshop cc gives you automatically (name a layer .png and then export it as such)

2015/02/21
0
2/21/2015 9:41:00 AM