Hello, afaics, python is the recommended language for writing one's own extensions and effects. http://wiki.inkscape.org/wiki/index.php/PythonEffectTutorial gives a nice little overview, and http://wiki.inkscape.org/wiki/index.php/PythonModules provides a little bit more information. My question is: Is there a more comprehensive documentation somewhere about the several modules, classes and their methods and attributes? Or at least a brief summary how to iterate over objects, layers, nodes, etc and how to modify them? Thanks, Daniel -- Psssst! Schon das coole Video vom GMX MultiMessenger gesehen? Der Eine für Alle: http://www.gmx.net/de/go/messenger03
on 24.07.2008 13:49
on 29.08.2008 14:56
Bugzilla from daniel.hornung@gmx.de wrote: > > There is AFAIK no Python bindings or documentation available. Currently the best way to learn writing extensions is to study the code of extensions bundled with Inkscape. There are, however, a few helper modules available like simplepath.py simpletransfrom.py and simplesty.py and others. When writing an extension you basically work with the svg xml source. This means that you have to know how to manipulate the xml DOM tree and know your way around the W3 SVG specification. Inkscape comes bundled with the lxml library. I found it a bit confusing to learn, but once you understand the basics its not that difficult. The helper modules help you with tasks like path, transformation and style parsing, but it all boils down to manipulating xml. Regards, Kjell Magne Fauske -- View this message in context: http://www.nabble.com/Python-binding-documentation-for-effects-tp18630282p19219336.html Sent from the Inkscape - User mailing list archive at Nabble.com.
on 30.08.2008 22:44
On Friday 29 August 2008, Kjell Magne Fauske wrote: > When writing an extension you basically work with the svg xml source. This > means that you have to know how to manipulate the xml DOM tree and know > your way around the W3 SVG specification. Inkscape comes bundled with the > lxml library. I found it a bit confusing to learn, but once you understand > the basics its not that difficult. The helper modules help you with tasks > like path, transformation and style parsing, but it all boils down to > manipulating xml. Hello, thank you for your answer. I found out so much already and crawled through the available examples. Fortunately I got help by Aaron on the Inkscape-deve mailing list. Meanwhile I managed to update http://wiki.inkscape.org/wiki/index.php/PythonEffectTutorial into a working version, so the immediate problem is solved. Greetings, Daniel