Make Background layer and top layer visible
hi,
How to save layersets along with Background layer and top layer.
Here is the script to save current active layerset as .jpg format but when i try to use the (for loop) to save all the layersets one by one bottom order it current turn off's the background layer and top layer.
But i dont know how to run this via looping to make the active layer one by one along bottom and top layer
Anyone help on this to fix this script
#target photoshop;
if (app.documents.length > 0) {
var thedoc = app.activeDocument;
// getting the name and location;
var docName = thedoc.name;
if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
else {var basename = docName};
// getting the location, if unsaved save to desktop;
try {var docPath = thedoc.path}
catch (e) {var docPath = "~/Desktop"};
// jpg options;
var jpegOptions = new JPEGSaveOptions();
jpegOptions.quality = 12;
jpegOptions.embedColorProfile = true;
jpegOptions.matte = MatteType.NONE;
//save jpg in layerset name:
thedoc.saveAs((new File(docPath+'/'+thedoc.activeLayer.name+'.jpg')),jpegOptions,true);
//thanks to xbytor;
};
