I'm working on a script to calculate if selected line objects intersect (and if so where), and to create new nodes in both objects at the intersection point. I'm about half way through the script, and can extract node info and process it to check for intersections. But being fairly new to Inkscape I have no idea how to create new nodes within a specific object (at a specific path position, etc). Grateful for any pointers. If it helps, the script acquires the selection node data via the probably fairly typical:
Code: Select all
import inkex
import sys
class TemplateEffect(inkex.Effect):
def __init__(self):
inkex.Effect.__init__(self)
def effect(self):
for id, node in self.selected.iteritems():
# CODE...
Seperately, the documentation here (
http://wiki.inkscape.org/wiki/index.php ... extensions) seems a bit light on detail. Is there a better resource anywhere with a list of python functionality, or better still a collection of basic examples?