On 11/16/06, Ted Gould <ted@...11...> wrote:
What needs to be done so that you don't distinguish between the two?
1. Interactivity: drag a slider and see the result on the canvas in real time. Not sure how to go about it or is it possible at all.
2. Speed. Python selects document nodes by XPath, which is ridiculously slow.
3. More direct access to Inkscape's internal functions or their equivalents. To start, as I already suggested, it would be nice to pass to extensions the bboxes of all selected objects - calculating these bboxes is very nontrivial, so the only practical solution for an extension that wants to get a bbox of some object is to run Inkscape command line with query params! Also, while Python extensions have some nice little libraries for parsing paths and styles, these libraries are just hacks, they handle more or less reliably only the simplest cases. To fix this, you basically need to either reimplement much of Inkscape in Python, or invent some way for extensions to poke into the internals of a running Inkscape. Again, I'm rather unsure about whether this is at all possible or practical.