Skip to content

Make longer continuous paths from shorter path segments

License

Notifications You must be signed in to change notification settings

veronika/inkscape-chain-paths

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inkscape-chain-paths

An inkscape extension to combine paths. Like really combining path snippets into longer paths. The stock inkscape path operation "combine" does not do that. It only creates a single path object consisting of multiple distinct segments.

Many commercial CAD packages create object contours consisting of separate path snippets using adjacent end points. Such objects cannot be used in path operations like "add", "intersect", "difference", as they are technically a set of objects, rather than a single stroke.

This extension forms a longer path from multiple shorter path segments. It is irrelevant if the path segments are separate path objects in inkscape, or if the path segments belong to the same path object. If two path segments have an end point in common, or if their end points are close together, they are linked together to form a longer path. It is optional weather the linking end points meld into a single common point, or if an optional straight line ('chain link') fills the gap, if any. The maximum distance for end points is a user setting. Usually a fraction of a millimeter works fine.

Usage

Select multiple pathlike objects. If the status line shows you different object types, then use "Path -> Object to Path". This is needed as we operate only on paths only. Then select "Extensions -> Modify Path -> Chain Paths" to open the settings dialog. You can choose the maximum endpoint distance for path ends to be linked, and the combination method: snap the points together, or create a linking path segment.

Note, that paths never fork. This means, that if there are three or more path ends at the same location, only two are chained together. The others are left unchanged.

Installation

Copy the two files chain_paths.inx and chain_paths.py to your computer:

Ubuntu / SUSE

  • ~/.config/inkscape/extensions/ or
  • /usr/share/inkscape/extensions/

Arch Linux:

Windows:

  • Download https://github.com/fablabnbg/inkscape-chain-paths/archive/master.zip
  • Navigate to your Downloads folder and double-click on inkscape-chain-paths-master.zip
  • Download and install the free test version of winzip from http://www.winzip.com, if needed.
  • Click open the inkscape-chain-paths-master folder.
  • Select the following two items (with Ctrl-Click): chain_paths.inx, and chain_paths.py
  • Extract to My Computer C:\Program Files\Inkscape\share\extensions

Mac OS X:

Copy the two files chain_paths.inx and chain_paths.py to your computer:

  • ~/.config/inkscape/extensions/ or
  • /Applications/Inkscape.app/Contents/Resources/extensions/ .

To get the files, you can right click on the 'RAW' button and use your file managers 'save as' function. Please check the size of the files. If the chain_paths.inx file is more than 1kb, or has more than 33 lines, you probably saved the webpage containing the file, instead of the file itself.

About

Make longer continuous paths from shorter path segments

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 87.1%
  • Shell 8.4%
  • Makefile 4.5%