6 Replies Latest reply on Oct 13, 2016 2:05 AM by tpk1982

    object is invalid

    jakec88782761 Level 1

      Hi,

       

      This script is supposed to hide layers called draft but I keep getting errors saying the object is invalid.

       

                     var input = ['Draft','draft', 'DRAFT'];   

                      l = input.length;   

                      while(l--){  

                      if(openDocs[i].layers.item(input[l].).visible==true){   

                          openDocs[i].layers.item(input[l]).visible=false;   

                  }  

             

           }

       

      any help please?

      Also thanks to tpk1982 for the help