Copy link to clipboard
Copied
There can be some two points shapes in file which have fill and do not have stroke (outline). It is a tiny lines which hardly visible as well as hard to detect if they are placed on edges of other objects. How to find such shapes? For example, a shape when someone used Line Segment Tool with applied fill and no stroke.
I don't know if I understand you correctly. This will select paths with two points, a fill and no stroke.
app.selection = null;
var paths = app.activeDocument.pathItems;
for (var i = 0; i < paths.length; i++) {
if (paths[i].pathPoints.length == 2
&& paths[i].filled == true
&& paths[i].stroked == false) {
paths[i].selected = true;
}
}
Copy link to clipboard
Copied
Object > Path > Clean Up...?
Copy link to clipboard
Copied
nope
Copy link to clipboard
Copied
I don't know if I understand you correctly. This will select paths with two points, a fill and no stroke.
app.selection = null;
var paths = app.activeDocument.pathItems;
for (var i = 0; i < paths.length; i++) {
if (paths[i].pathPoints.length == 2
&& paths[i].filled == true
&& paths[i].stroked == false) {
paths[i].selected = true;
}
}
Copy link to clipboard
Copied
you understood perfectly
will those lines be printable (visible) when sending such a file to a postscript imagesetter?
Copy link to clipboard
Copied
I don't know the answer, but once selected, can they not be deleted or made invisible?
Copy link to clipboard
Copied
I think it is safer to delete such shapes.
Copy link to clipboard
Copied
If they all the same unique color, find one, then use select ā same fill...
Can't be that easy though right?
Copy link to clipboard
Copied
not shure, there can be a lot of objects with the same color and you may do not know where to find such shapes
Copy link to clipboard
Copied
"Find same appearance" does not limit selection to "2-point" shapes. The script @femkeblanco shared DOES!
Copy link to clipboard
Copied
if I uderstood you right, the above script DO limit selection to "2-point" shapes:
paths[i].pathPoints.length == 2