5 Replies Latest reply on Jul 26, 2009 9:57 AM by John Kallios

    JS CS4: Create variable for current layer then select the layer at the end of a script

    John Kallios Level 2

      I'm coming up blank with the verbiage and spinning my wheels with the OMV and script guide.

       

      var myOriginalLayer = app.activeDocument.layers.item(0);
      alert(myOriginalLayer)

       

      returns "object layer" and not the layer's name.

       

      var myOriginalLayer = app.activeDocument.layers.lastItem().name;

      Does return the layer name I want but not by selection.

       

      I'm challenged on how to select the layer.