1 Reply Latest reply on Nov 15, 2014 8:49 AM by c.pfaffenbichler

    Script progression caught on Layer Group Parent

    Hoffbrau Level 1

      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];
      }