• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to find two points shapes with no outline but filled with a color?

Explorer ,
Jan 19, 2022 Jan 19, 2022

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.

TOPICS
Feature request , Scripting , Third party plugins , Tools

Views

337

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jan 19, 2022 Jan 19, 2022

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;
    }
}

Votes

Translate

Translate
Adobe
Community Expert ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

Object > Path > Clean Up...?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

nope

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 19, 2022 Jan 19, 2022

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;
    }
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

you understood perfectly
will those lines be printable (visible) when sending such a file to a postscript imagesetter?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

I don't know the answer, but once selected, can they not be deleted or made invisible? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

I think it is safer to delete such shapes.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jan 19, 2022 Jan 19, 2022

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2022 Jan 19, 2022

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

"Find same appearance" does not limit selection to "2-point" shapes. The script @femkeblanco shared DOES!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

LATEST

if I uderstood you right, the above script DO limit selection to "2-point" shapes:

paths[i].pathPoints.length == 2

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines