Select a path within a closed path
Select a path within a closed path
Hello,
Is it possible to select a closed path inside another closed path ?
Below is an example of what I want to do. We receive cutting files of this type (left) and I would like to modify the paths as shown on the right so that the file is ready to be milled (right).
Thanks
Is it possible to select a closed path inside another closed path ?
Below is an example of what I want to do. We receive cutting files of this type (left) and I would like to modify the paths as shown on the right so that the file is ready to be milled (right).
Thanks
- JimmyHartington
- Advanced member
- Posts: 298
- Joined: Tue Mar 22, 2011 7:38 am
Re: Select a path within a closed path
You could select the Cut path.
Set artbox to selection.
Select object completely inside region which is the artbox with color cut.
Change color of the object.
If you still get the outside box selected, then resize the artbox to -1mm on each side before using it as a region.
Set artbox to selection.
Select object completely inside region which is the artbox with color cut.
Change color of the object.
If you still get the outside box selected, then resize the artbox to -1mm on each side before using it as a region.
Re: Select a path within a closed path
Thank you for this explanation which works with this first example.
Finally, this is what I would really like to do with letters.
Do you have an idea?
Finally, this is what I would really like to do with letters.
Do you have an idea?
- JimmyHartington
- Advanced member
- Posts: 298
- Joined: Tue Mar 22, 2011 7:38 am
Re: Select a path within a closed path
Can you supply a sample file, then I can give it a go?
- JimmyHartington
- Advanced member
- Posts: 298
- Joined: Tue Mar 22, 2011 7:38 am
Re: Select a path within a closed path
I have solution for your example. But it is not perfect.
Action list: https://d.pr/f/2Bej8Z+
As you can see it works.
But only because there is 2 lines.
Since I use the bounding box of all the Cut colored objects there can be situations where a object is completely enclosed in the bounding box.
If I move the object a bit in your example, then it does not work.
Your text in this case was a compound path, so I needed to split the path first to make it work.
Action list: https://d.pr/f/2Bej8Z+
As you can see it works.
But only because there is 2 lines.
Since I use the bounding box of all the Cut colored objects there can be situations where a object is completely enclosed in the bounding box.
If I move the object a bit in your example, then it does not work.
Your text in this case was a compound path, so I needed to split the path first to make it work.
Re: Select a path within a closed path
I understand. Indeed, when testing on a sample of cutting files, it does not work in all cases.
I am continuing my research. Thank you.
I am continuing my research. Thank you.
-
- Newbie
- Posts: 5
- Joined: Sat May 21, 2022 6:30 pm
- Contact:
Re: Select a path within a closed path
you can use this action.
ypu can edit to add your own values
ypu can edit to add your own values
- Attachments
-
- Captura.JPG (32.72 KiB) Viewed 2254 times
-
- Action.zip
- (1.86 KiB) Downloaded 99 times
Visit my Youtube Channel https://tinyurl.com/prepress-world
Re: Select a path within a closed path
Thank you for your suggestion.david.ayha wrote: ↑Sun Dec 11, 2022 5:21 pm you can use this action.
ypu can edit to add your own values
The script I'm trying to make must work with different sizes of shapes.
- JimmyHartington
- Advanced member
- Posts: 298
- Joined: Tue Mar 22, 2011 7:38 am
Re: Select a path within a closed path
Does it have to be completely automatic?
Our could a user select items and run the action list on user selection?
Because if that is the case then my action list should work, where the user needs to select items where the bounding box will make it work.
It could be done like in this video: https://d.pr/v/1jOWgC
Our could a user select items and run the action list on user selection?
Because if that is the case then my action list should work, where the user needs to select items where the bounding box will make it work.
It could be done like in this video: https://d.pr/v/1jOWgC
-
- Newbie
- Posts: 5
- Joined: Sat May 21, 2022 6:30 pm
- Contact:
Re: Select a path within a closed path
I recommend you upload more PDF files, for try to create a standard actionschmitzdp wrote: ↑Thu Dec 15, 2022 4:05 pmThank you for your suggestion.david.ayha wrote: ↑Sun Dec 11, 2022 5:21 pm you can use this action.
ypu can edit to add your own values
The script I'm trying to make must work with different sizes of shapes.
cheers
Visit my Youtube Channel https://tinyurl.com/prepress-world