1 Reply Latest reply on Dec 11, 2012 5:42 AM by Jump_Over

    Layername of the selected object

    watonnozelisdahier Level 1



      Need some help please.


      With a scriptlabel i can find the wanted object.


      var oPageItems = app.activeDocument.allPageItems;

      for (var j = oPageItems.length-1;  j >= 0; j--) { if (oPageItems[j].label==("Testobject"))

      {  alert("Found"};}




      but how can i know the name of the layer where i can find this object.


      Please help