I'm trying to make this script working in a loop and change parameters in each new loop:
 
 
 
var layerRef = app.activeDocument.artLayers.getByName("1");
 
layerRef.visible = true;
 
 
 
function saveJPEG( doc, saveFile, qty ) {
 
     var saveOptions = new JPEGSaveOptions( );
 
     saveOptions.embedColorProfile = true;
 
     saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
 
     saveOptions.matte = MatteType.NONE;
 
     saveOptions.quality = qty;
 
     doc.saveAs( saveFile, saveOptions, true );
 
}
 
saveJPEG( app.activeDocument, new File('~/Desktop/1.jpg'), 10 );
 
 
 
The script is making later "1" visible and than save it in to jpeg as "1.jpg". In second loop I need it to make layer 2 visible (layer 1 is still visible - layers are blending) and save it as 2.jpeg. In third loop: layer 3 and save file 3.jpeg, ect...
 
 
 
Thank you.
 
G>>>  |