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.
June 1st, 2009 at 4:41 am
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
February 3rd, 2010 at 7:23 pm
It works great! Thanks for saving me from lots of time spent doing repetitive tasks.