AnTi-ArT / Auto-Node-Types

Inkscape extension that automatically sets the right type (cusp/smooth/symmetry) to handles of the selected path/s.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto Node Types

Inkscape extension that automatically sets the right type (cusp/smooth/symmetry) to handles of the selected path/s.

Maybe there is a bug in Inkscape or maybe my workflow sucks (unlikely...), but I noticed that the handles sometimes lose their correct type. For Example after deleting a node (A) or smoothing (B). If your handles look smooth, but for some reason are cusp - just run this extension.

a-n-types

Installation

Copy AutoNodeTypes.py and AutoNodeTypes.inx to your Inkscape Extensions Folder. Linux e.g. /home/you/.config/inkscape/extensions/

Open the extension with Inkscape -> Extensions -> Modify Path -> Auto Node Types

Options

  • Minimum Angle to smooth: Is a threshold. Everything bigger as the value will be recognized as directly opposite. The maximum angle between handles is 180 degrees (aka "a line"). Due to rounding and human error handles often end up with a slightly lower value and will not be smoothed. That's why the default is set to 178. You can force any angle between handles to become smooth. The handles will, however, not change their actual position to a line until you manually change the handle a bit.
  • Handles with same length will be: Smooth, Symmetric, Cusp or Auto Smooth. If you draw with the pen tool, you will generate a lot of handles that look symmetric (same lengths), but are in fact of type smooth (could be different lengths) - which is likely what you want for further editing. With this setting you can keep those "smooth" or change them to any other type. Defaults to Smooth.
  • Zero handles will be: Cusp, Smooth, Symmetric or Auto Smooth. Default is Cusp and you better leave it that way, because unexpected behaviour can happen 👯 ... or just go ahead and experiment. But make a backup of your artwork first...
  • Debug? Prints some Debug messages.

Credits

About

Inkscape extension that automatically sets the right type (cusp/smooth/symmetry) to handles of the selected path/s.

License:MIT License


Languages

Language:Python 100.0%