Layer Sets to Files script
Layer Sets to Files script
Anyone know if someone has made a script that will convert each layer set to a separate file, using the name of the set as the filename? I did a search, but had no luck.
Layer Sets to Files script
This should get you started.
it assumes the activeLayer is the layerset you want to save. I left the saving up to you
Code: Select allvar doc = app.activeDocument;
var myLayerSet = doc.activeLayer;
var newName = doc.name + "_" + myLayerSet.name;
var newDoc = app.documents.add(doc.width, doc.height, doc.resolution, newName);
newDoc.activeLayer.isBackgroundLayer = false
app.activeDocument = doc;
myLayerSet.duplicate(newDoc);
app.activeDocument = newDoc;
it assumes the activeLayer is the layerset you want to save. I left the saving up to you
Code: Select allvar doc = app.activeDocument;
var myLayerSet = doc.activeLayer;
var newName = doc.name + "_" + myLayerSet.name;
var newDoc = app.documents.add(doc.width, doc.height, doc.resolution, newName);
newDoc.activeLayer.isBackgroundLayer = false
app.activeDocument = doc;
myLayerSet.duplicate(newDoc);
app.activeDocument = newDoc;
Layer Sets to Files script
Thanks,
I figured someone may have already put one together, not that I'm lazy, but no reason to do extra work if someone is sharing. Doesn't look like it though, so I'll start with what you gave me and make my own. Thanks!
I figured someone may have already put one together, not that I'm lazy, but no reason to do extra work if someone is sharing. Doesn't look like it though, so I'll start with what you gave me and make my own. Thanks!
Layer Sets to Files script
Here's a basic version. Nothing fancy. Later if I have time I'll add more functionality to it like turning on all layers and auto selecting top layer. As it works now you'll need to select topmost layerSet yourself and make sure all layer sets are in order and visible. Then run the script.
Also, if anyone tries it, let me know if it ain't working right.
Also, if anyone tries it, let me know if it ain't working right.