Page 1 of 1

Select only Largest Lineart Path

Posted: Wed Feb 19, 2025 5:03 pm
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.

Re: Select only Largest Lineart Path

Posted: Thu Feb 20, 2025 10:38 am
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.

Re: Select only Largest Lineart Path

Posted: Thu Feb 20, 2025 2:28 pm
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!

Re: Select only Largest Lineart Path

Posted: Thu Feb 20, 2025 3:15 pm
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.