Copy link to clipboard
Copied
Hi Experts,
please can you help me to update this code :
//Delete All Polygons form Current Document
var myPolygonFrames = app.activeDocument.polygons;
for (i=myPolygonFrames.length-1; i>=0; i--) {
myPolygonFrames[i].remove();
}
the above code is working to delete all the polygons in the current document, but i want to update it to exclude master/parent pages and also i searched the dom to try to make it target specific polygons with width and height values but i didnt find anything about that,, please help!, and many thanks in advance.
How would you think to?
polygon.parentPage.parent instance of MasterSpread will tell you if the polygon is on a parent spread.
polygon.geometricBounds can get you height and width.
Copy link to clipboard
Copied
How would you think to?
polygon.parentPage.parent instance of MasterSpread will tell you if the polygon is on a parent spread.
polygon.geometricBounds can get you height and width.
Copy link to clipboard
Copied
Thanks a lot @brianp311