Copy link to clipboard
Copied
Hello!
I am trying to automate a lenghty export process I have found myself dealing with while generating product images for my website. The product images have variant color options which I have created as different layers. Instead of hiding a layer and showing the new layer then exporting / repeating this process individually for each of the 100 variants I have is there a way to "action" "script" "timeline" etc. so i am not wasting hours of my time everytime I add a new product with these 100 variants?
Here is a simple example of what i want to be automated into one export.
First Export:
Layer1
Layer2
Layer3
Layer4
Second Export:
Layer1
Layer2
Layer3
Layer5
Third Export:
Layer1
Layer2
Layer3
Layer6
Copy link to clipboard
Copied
There must be lot of questions before my suggestion how to do things using action. Have you tried layer export with Visible Layers Only checked? You can create Layer Comps to show only layers which you want to export at any perticular export.
To make things easier to understand please uload screenshot with layers panel visible so I can better understad what is all about to give you better advice.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I am trying to export this image with every layer shown currently on the canvas + if you look under the Layers Panel you will see that I have a number of layers for the hammocks. I want to be able to export each color variation of the hammock with a single export action instead of having to manually export them and change the visible layer off then turn on the next color and export again, and again and again...
Copy link to clipboard
Copied
If I can understand this task correctly then easiest way can be to create Window > Layer Comps then to export layer comps as files using File > Export > Layer Comps as Files.
If this does not work for you then please explain further what is your goal and which groups should be included, for example: always export Accessories and one color group. If that is your goal then it may be best for you to use layer comps as suggested unless you have many files with the same group structure/names and you want to automate for that reason.
Copy link to clipboard
Copied
Take a look at Paul Riggott's Layer Saver and Layer Saver Plus scripts:
https://raw.githubusercontent.com/Paul-Riggott/PS-Scripts/master/Layer%20Saver.jsx
https://raw.githubusercontent.com/Paul-Riggott/PS-Scripts/master/Layer%20Saver%20Plus.jsx
https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html
Copy link to clipboard
Copied
Thank you for this! Is there any way you could send the file and not the source code? I'm having trouble with converting it to a .jsx file it keep sgiving me a Syntax Error "Error on line 1: SyntaxError: Invalid character: '#'"
Ok, I was actually able to figure out how to save as .jsx and added the script but when i ran it nothing happened different than a normal export?
Copy link to clipboard
Copied
You need to have a multi-layered file open and may need to select two or more layers depending on the script.
These two scripts are old, they still work, however, for greater legibility the code needs adjustment for the dark interface used in later versions of Photoshop:
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more