Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Script progression caught on Layer Group Parent

$
0
0

I have this code to progress down a doc and offset - it gets caught on Group Folders - the LayerSet Parent Node. Anyone have an idea how to rephrase this - to get it to progress past the layer group folder and on to the next layer?

 

for (var i=0; i<srcDoc.layers.length; i++) {
if (srcDoc.layers[i].visible) {
srcDoc.activeLayer = srcDoc.layers[i];
if (srcDoc.activeLayer.kind != LayerKind.TEXT){
Offset();
}
else{
srcDoc.activeLayer = srcDoc.layers[i];
}

Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>