r/GIMP 4d ago

enclosed paths trouble

Post image

I am isolating sections of paths I created around objects. I wish for those isolated sections to become new seperate paths; however, when using "extract_anchors" from the script ofn-path-edits by Ofnuts, it does not work out the way I want it.

The path I get is weirdly enclosed by an extra line on each side of the selected section. How do I ensure that the straight line (see picture) is not included?

3 Upvotes

5 comments sorted by

5

u/ofnuts 4d ago

Yes, the code uses the "closed" flag of the source stroke. Very easy to fix but I have to think about edge cases. In the meantime you can always ctrl-shift-click the closing segment to remove it.

4

u/ofnuts 4d ago

Very easy to fix

Famous last words... Actually opens an ugly can of worms. Will get it fixed nevertheless...

3

u/schumaml GIMP Team 4d ago

You could delete this segment via the Path tool's Edit mode:

  • hold Ctrl to get the tool into Edit mode (you'll see this in the Path tool options as well)
  • hold shift to make it remove what you click on , indicated by a small minus sign near the cursor
  • click on the connecting line

2

u/datporolol 4d ago

Thanks a lot for the tip, that much easier than I thought!

2

u/ofnuts 4d ago

Fixed. If you delete/extract anchors, you now get one or more open strokes.

New version available on SourceForge.