This is a major new release of Simple Inkscape Scripting.  You'll definitely want to upgrade to pick up all the exciting new features! The API has bee

spakin / SimpInkScr Public

submited by
Style Pass
2021-12-06 19:00:11

This is a major new release of Simple Inkscape Scripting. You'll definitely want to upgrade to pick up all the exciting new features!

The API has been made more consistent in terms of scalar versus tuple/list arguments. Items serving the same purpose are now consistently 2-tuples (for two of the same item) or lists (for varying numbers of items). For example, x and y radii are now specified as a single tuple, and lists of coordinates are now specified as a list rather than as an arbitrary number of individual arguments. These changes affect, in particular, ellipse, polyline, polygon, arc, and path. Please update your existing Simple Inkscape Scripting scripts accordingly.

For convenience, arc accepts a scalar radius as a shorthand for a tuple containing two of the same radii; and path can accept a single string in addition to a list of terms, as the former may be helpful when copying and pasting from an existing SVG path string.

The distribution includes an output extension that lets you save an SVG image as a Simple Inkscape Scripting script. Go to File → Save a Copy… and select Simple Inkscape Scripting script (*.py) from the pull-down menu.

Leave a Comment
Related Posts