Layer Comps to PNG

In my last tutorial I showed a little Photoshop feature called Layer Comps that I’ve been using a lot for Blu-ray menus. Well there is a script in Photoshop called “Layer Comps to File” which automatically exports all the layer comps as a few different types of files. Unfortunately PNG isn’t one of the options. Well I started to modify the script and after a couple minutes I though maybe someone had already done this, and I was right. You can download a new script from: http://jhilwig.com/LayerCompsToFiles_w_PNG/

However when I ran the script, it was naming the file _0001_mm_bg.png, which I didn’t like. So I opened up the script and found this line:

fileNameBody += “_” + zeroSuppress(compsIndex, 4);
fileNameBody += “_” + compRef.name;

and replaced it with:

//fileNameBody += “_” + zeroSuppress(compsIndex, 4);
fileNameBody +=  compRef.name; 

So now it just outputs whatever the name of the layer comp was.

2 Responses to “Layer Comps to PNG”

  1. Nathan Says:

    It sounds like you’re creating problems yourself by trying to solve this issue instead of looking at why their is a problem in the first place

  2. nelsdrums Says:

    It works great! Thanks for saving me from lots of time spent doing repetitive tasks. :)

Leave a Reply