4 Replies Latest reply on Nov 8, 2008 8:27 AM by sotospeak (carlo bazzo)

    layers in CS3 and JS

    sotospeak (carlo bazzo) Level 1
      I have a palette where there is a drop down control loading all layers names in the active document.

      I need to lock every layer except for the one selected in the drop down control. I coded this:

      mydocument.layers.anyItem().locked=true
      mydocument.layers.item(myselectedlayer).locked=false

      It looks like this is not working properly in OSx : any better suggestion?

      Is there any way to make one layer as the active one?

      thank you
      carlo