Reply To: Rogue 'point'

#56250

Yeah, I've seen that before. Seems no-one at Adobe expected this! You could file a bug report …

This quick script searches for all stray points (with only one path and consisting of one single point) and deletes it. It seems to work, even if the single point is grouped with other objects, but I suspect it will fail if the point itself is locked or on a locked layer. If you find one, I'll add checks for those too.

p = app.activeDocument.allPageItems;

for (i=p.length-1; i>=0; i–)
if (p[i].hasOwnProperty (“paths”) && p[i].paths.length == 1 && p[i].paths[0].pathPoints.length == 1)
p[i].remove();

This article was last modified on July 4, 2010

Comments (0)

Loading comments...