Bugzilla from daniel.hornung@...26... wrote:
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?
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