3 Replies Latest reply on Dec 20, 2016 4:11 PM by K159

    [JS] How to get object variable of added polygon?

    K159 Level 1
      var AddPolygon = app.activeWindow.activePage.polygons.add(
      }).paths[0].entirePath = [[0,0], [10,0], [10,10],[0,10]];  
      alert( AddPolygon );







      I want to get polygon object variable.


      But, polygon add function return values have coordinates.


      How to get Polygon object variable?


      Thanks in advance.