1 Reply Latest reply on Jun 9, 2014 8:25 AM by kinkersnick127

    Add layer to group

    kinkersnick127 Level 1

      Hi, I'm trying to add a layer to a group (this is a simple part of a much larger script), but can't seem to get it to work. Here is the script:

      myDoc = app.activeDocument;
      var newLayerSet = myDoc.layerSets.add();   
      var myLayer = myDoc.layers[0];
      myLayer.move(newLayerSet, ElementPlacement.INSIDE);  
      

       

      Any idea why this doesn't work?

       

      S