1 Reply Latest reply on May 29, 2008 12:24 PM by (Olav_Kvern)

    [CS3][JS] Selecting Layers by Name

      I'm trying to design a script to select layers by a given name. And then PDF layer1 (base) and certain items that are on each layer 1 at a time so I have multiple different pages. But the PDF thing doesn't seem to be much of an issue. I just can't select the layer by name.

      This is what I have so far:

      var myDocument = app.documents[0];
      var circusLayer = myDocument.layer[Circus];
      circusLayer.visible = false;