3 Replies Latest reply on Aug 22, 2015 2:10 AM by Johnwhite

    How to lock layer?

    Johnwhite Level 1

      Hi experts,

       

      How to make a script for lock layers

      how to make this script as below working?

       

              var docs = app.documents;

                   for (var i = docs.length-1; i >= 0; i--) {

                          var myLayer = docs.layers.item("Lock");

                           myLayer.locked = true; 

                    }

       

       

      Regard

      John