This release of Simple Inkscape Scripting introduces a few handy features:
- All Simple Inkscape Scripting objects define a
get_idmethod that returns the SVG ID of the underlyinginkexobject. - An
alignfunction provides a flexible means of aligning objects à la Inkscape's Object → Align and Distribute… dialog box. - The Simple Inkscape Scripting dialog box includes an "Ignore missing/broken Python packages" checkbox, which instructs Simple Inkscape Scripting to issue only a warning message upon failure to import NumPy and/or Pillow. Operations that require those packages will crash, but all other operations will run as normal.
- The
translatemethod accepts arelocateargument, which can be used to rewrite the object's coordinates rather than apply a transformation matrix.
A few nasty bugs have been squashed as well.
See the Simple Inkscape Scripting commit log for details of all of the above. Also, a PDF version of the complete online documentation is provided as a release asset named sis-docs.pdf.