Ted Gould wrote:
- If you're looking to execute Python scripts in Inkscape you can load
the Python interpreter using a flag to your ./configure script. Basically you can execute any Python you'd like, but that really isn't that useful as it is waiting on an API to support the functionality in Inkscape. Ishmal is working on implementing DOM for Inkscape, which will turn into that API.
This is what I am anxiously waiting for. I've tried to enable the Python interpreter with configure flags, but I just don't think I'm doing it correctly. When ever I include the flag configure reports the status "no" instead of "skipped". But if there is no comunication between Inkscape and the embedded interpreter, that does make it significantly less useful at the moment. I think I've seen some of Ishmal's code in CVS. Can't wait till he has something working.
- If you'd like to have an external script called by Inkscape and
integrated in, that will work today. The external script will have to be able to take in SVG as STDIN or STDOUT, I'm sure that there is a Python library to work with SVG. Then, you can do what ever you want with it from there.
I suppose I should try this out. I've done a small amount of reading about this in the past but I still have a host of questions. Will this work without writing code in C++? Do the filter type extensions only pump out the full SVG file or is it possible to send and replace just selected objects?
If you're interested in working with this method, I can provide more information based on what your goals are.
I have no goals other than fun and learning. I'd like to help out but I'm not quite ready to dive into C++ (getting there slowly). I've just now gained enough experience to be able to compile CVS daily for my own use. I think I see many things in the RFE tracker that probably aren't useful enough to the broad Inkscape audience for someone to invest a bunch of time coding or to clutter the UI. Many of those RFE could be addressed quite easily by someone like myself with marginal coding skills and a proper extension architecture. I'd love to learn more. Please point me in the right direction.
Thanks, Aaron Spike