File Icon
 
 

2472

Join Paths Effect

This extension lets the user join SVG paths. After installing, it would appear under Extensions->Modify Path menu. Select the paths that are to be joined and invoke the 'Join Paths' menu option. If the ending nodes of the paths to be joined don't coincide, an extra segment is created; if they do they are merged.

Quick Introduction: https://youtu.be/mC7rtjkT4kc

Update (Apr 10, 2019)
I have uploaded a variant of this extension on github. This will join the paths based on distances. Do let me know if you come across performance or other issues.

Video: https://youtu.be/3-cVmrlBRAI

Update (June 26, 2024)
This extension is rewritten using the latest inkex APIs. Also added options to determine path order based on selection, z-order and distance along with a few other options. Do check it out and open issue on GitHub if you come across any problem.

Inkscape Extensions

Size
1.9 KB
Created
Revisions
6
Type
application/zip
General Public License v2 (GPLv2)

Link

Khemadeva . wrote :

No. My extension is much simpler. It does not interpolate the Bezier handles (I just saw the chain_paths code on github). It simply connects the end node of the previous path with the starting node of the next, with a straight curve segment (similar to the 'join selected nodes with a new segment' tool). There are no options to select. If the nodes are 'very close' they are simply combined together to make a single node out of them.

I mainly created this to join the Hershey script face letters. I needed that for a blender add-on I recently wrote.
Please have a look at the intro video of this extension. The link is given above.

brynn wrote :

Hello,
Thank you for providing this extension for Inkscape users!

This is just to let you know that most 3rd party Inkscape extensions, like this one, probably will not work with the upcoming new Inkscape version, the long-awaited version 1.0.

Here is the info you need to update this extension, so that it will work with 1.0 and future versions.
https://wiki.inkscape.org/wiki/index.php?title=Updating_your_Extension_for_1.0

If you have further questions, you can contact Inkscape developers via mailing lists (https://lists.inkscape.org/postorius/lists/?all-lists), forum (https://inkscape.org/forums/extensions/), or the chatroom (https://chat.inkscape.org/channel/team_devel)

If you have already updated it, please disregard this message.

All best,
brynn

Khemadeva . wrote :

@MarioVoigt Thank you. That's really nice of you! I had a look at the changes and have one suggestion:
Is it possible to:
- create a boolean at the beginning of the join_paths_optimized.py and join_paths.py scripts based on the inkscape version and then
- based on this boolean value use the old version statements or new version statement wherever there is a conflict

This way the same file can be used for both 0.92 and 1.0 versions of Inkscape.
Please let me know if you are ok with this or you want me to do the changes.

rganap wrote :

Thanks I was able to get the files and it work.
Very useful tool

Please log in to leave a comment!