5 Replies Latest reply on Aug 2, 2017 11:27 PM by hamdifem

    current page override in layer

    hamdifem Level 1

      where error

       

       

      var doc = app.activeDocument;

      var page = app.activeWindow.activePage;

      var layer = doc.layers.item("Layer 1"); 

       

       

          for(var i = 0; i < page.allPageItems.length; ++i) {

              var a = page.allPageItems[i];

              if(a instanceof TextFrame && a.itemLayer == layer) {

                      a.override(page.masterPageItems);

              }

          }