Select only Largest Lineart Path

Post Reply
Tenzo
Member
Posts: 22
Joined: Wed Jan 31, 2024 11:22 am
Location: USA :(
Contact:

Select only Largest Lineart Path

Post by Tenzo »

After adding a trace path and the results have multiple Sub paths, how can I select ONLY the Largest OR all of the smaller paths? The attached image shows my goal of Adding the Biggest Path in Red to one Layer and All Smaller Sub Paths in Green to another.
Attachments
Paths.PNG
Paths.PNG (170.28 KiB) Viewed 21092 times
freddyp
Advanced member
Posts: 1129
Joined: Thu Feb 09, 2012 3:53 pm

Re: Select only Largest Lineart Path

Post by freddyp »

The red and green lines are the result of "Add trace path", right? Continue with:

Code: Select all

Select last added objects
Change color (to a spot color, let us call it Inside)
Then you set the art box to the selection and make it a bit smaller:

Code: Select all

Change art box (resize to fit the selection and use a small negative offset)
Then you select the object that (partly) overlaps with the art box. That selects the largest contour in your case (note that this is not generally true!). And change the color:

Code: Select all

Select objects inside or outside region (outside region or overlapping region, and set the region to the art box)
Change color (to a spot color, let us call it Largest)
You can also turn the reasoning around by starting with Largest, but then you have to do something extra:

Code: Select all

Select last added objects
Change spot color (Largest)
Change art box
Select objects inside or outside region
Select objects inside or outside a contour (here it is only inside of course)
Change color (Inside)
The reason to also present this approach is to highlight the very interesting action to select objects in a region defined by a contour.
Tenzo
Member
Posts: 22
Joined: Wed Jan 31, 2024 11:22 am
Location: USA :(
Contact:

Re: Select only Largest Lineart Path

Post by Tenzo »

Well, Freddy, that is what I was needing to accomplish my action list! I altered it some by adding "Split in subpaths" after the "Add trace path" as it adds all paths to it main object.

As you have mentioned before I have RTFM, though my newbie brain missed those actions & couldn't figure it out.
Thank you so much for the helping bring these actions to light!
freddyp
Advanced member
Posts: 1129
Joined: Thu Feb 09, 2012 3:53 pm

Re: Select only Largest Lineart Path

Post by freddyp »

I did not try it with "Add trace path" so I was wondering about the subpaths, but thank you for reporting back and adding this to the solution.
Post Reply