Gimp-Forum.net
Is there a script to select all the nodes inside a selection? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Is there a script to select all the nodes inside a selection? (/Thread-Is-there-a-script-to-select-all-the-nodes-inside-a-selection)



Is there a script to select all the nodes inside a selection? - PixLab - 04-07-2023

I'm speaking about the nodes on a path, actually I need to select multiple nodes I want to move one by one Huh
Select first one > Shift Select next > Shift Select next > Shift Select next > Shift Select next > Shift Select next > Shift Select next > Shift Select next........ that get quickly very very annoying Dodgy

I would like to know if there is something like make a selection, and just run the script and nodes inside the selection are selected

Simulation of a selection of multiple nodes
[attachment=9659]


RE: Is there a script to select all the nodes inside a selection? - Ofnuts - 04-07-2023

(04-07-2023, 03:25 PM)PixLab Wrote: I'm speaking about the nodes on a path, actually I need to select multiple nodes I want to move one by one  Huh
Select first one > Shift Select next > Shift Select next > Shift Select next > Shift Select next > Shift Select next > Shift Select next > Shift Select next........ that get quickly very very annoying  Dodgy

I would like to know if there is something like make a selection, and just run the script and nodes inside the selection are selected

Simulation of a selection of multiple nodes

None I know of. My ofn-path-edit script can extract anchors that are in the selection (actually, delete everything not in th eselection) so you can isolate  a part you want to work on, and then merge/splice it back when done.


RE: Is there a script to select all the nodes inside a selection? - PixLab - 04-07-2023

Thanks Ofnuts, but I need the selected to stay connected with the non selected Wink


RE: Is there a script to select all the nodes inside a selection? - PixLab - 04-07-2023

As a picture is worth thousand words (ok here is one minute video)

Best example Big Grin
> 1 minute video (no worries the very-boring parts were accelerated 6 times)
https://imgur.com/b9SQu4I

See... how long it can takes just to select nodes, and it's prone to error.


RE: Is there a script to select all the nodes inside a selection? - nelo - 04-08-2023

Probably more a job for Inkscape, I guess.


RE: Is there a script to select all the nodes inside a selection? - rich2005 - 04-08-2023

I can (sort of) get a result using a couple of Ottia Tuota plugins crop_path.py and join_strokes.py but it is tedious joining the separated paths and the result has reversed strokes ...

My first inclination same as nelo, is Inkscape...but...am I the only one who finds Gimp scrambles Inkscape paths especially those from text.

I keep a old vector app SK1 https://sk1project.net/sk1/download/ for emergencies, It would be nice if the Gimp path tool eventually had a multiple node selection.

In the meantime a 1 minute example. https://i.imgur.com/deT92nm.mp4


RE: Is there a script to select all the nodes inside a selection? - PixLab - 04-08-2023

(04-08-2023, 11:12 AM)rich2005 Wrote: I can (sort of) get a result using a couple of Ottia Tuota plugins crop_path.py and join_strokes.py but it is tedious joining the separated paths and the result has reversed strokes ...

My first inclination same as nelo, is Inkscape...but...am I the only one who finds Gimp scrambles Inkscape paths especially those from text.

I have found a solution about that scrambling problem, before exporting/saving as, I click on the "Make Selected Segments Curves", this add the missing handle/s (some time 1 or both) to the nodes, because GIMP seems to not like when it misses a handle on a node.

In all case, each time I'm switching to Inkscape when there are quite some nodes to select, I feel that I use the heavy artillery just for few nodes 'Sad
10-15 nodes to select, I stay with GIMP, though.

[attachment=9672]

(04-08-2023, 11:12 AM)rich2005 Wrote: I keep a old vector app SK1 https://sk1project.net/sk1/download/ for emergencies, It would be nice if the Gimp path tool eventually had a multiple node selection.

In the meantime a 1 minute example. https://i.imgur.com/deT92nm.mp4

Thank you Rich but sadly I cannot install sk1 (I even tried version down until Ubuntu 16.04)
All the same error
[attachment=9673]

I have both python2 and 3, anyway it should work as "active" python >= 2.7, no? (Ubuntu-MATE 20.04.5)
In terminal:
Code:
patrice@Ubuntu-Family:~$ python -V
Python 2.7.18