This Extension allows you to embed a python script in the svg document, in that script you can define vars and functions (any python code really)... Then you can create parametric attributes in your svg objects. a parametric attribute is an attribute prefixed with parametric namespace, this attribute can contain any valid python expression which will be evaluated by this extension and the result will be set to the real attribute (without namespace) for example: # Import utilities from pyscript import svg import math # Simple rotation # 1. Get the Element element = ink.select_first('#arrow') # 2. Parse the element path = svg.PathObject( node = element ) # 3. Rotate path path.rotate( math.radians ( 30 ) ) # take into account inkscape inverted coordinate system # 4. Update element path.commit() Project page: https://gitlab.com/mnesarco/inkscape-pyscript
This extension is for users of the FreeCAD Marz Workbench that relies on inkscape svg files. The user can add the required information to the paths in Inkscape so the Marz WB can recognize them as valid geometry references. Development: https://github.com/mnesarco/MarzWorkbench Tested on: Inkscape 1.3.2 (091e20ef0f, 2023-11-25) GLib version: 2.78.4 GTK version: 3.24.41 glibmm version: 2.66.1 gtkmm version: 3.24.5 libxml2 version: 2.11.5 libxslt version: 1.1.39 Cairo version: 1.18.0 Pango version: 1.51.2 HarfBuzz version: 8.1.1 OS version: GNOME 45 (Flatpak runtime)