-----Original Message----- From: Ted Gould [mailto:ted@...11...] Sent: Monday, March 30, 2009 04:50 To: G33K; Aaron Spike Cc: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Affine Transformations in Python
On Thu, 2009-03-26 at 04:21 -0700, G33K wrote:
Hi, I' d like to ask if there is perhaps some sort of affine transformation library available to the Inkscape Python scripts?
So far, I only found the file simpletransform.py, which is quite useful, but not very comprehensive. The transformation
stuff already
has excessive support in the Inkscape C++ code. Are there
any Python
bindings for that?
Right now, I am primarily interested in getting pretty constructor functions for defining rotations and scaling, without
having all the
mathy matrix clutter in my code. If none are available, I could add those to simpletransform.py myself.
Aren't there Python bindings for lib2geom somewhere?
I had the same thought Ted; indeed work has been done to get python bindings for lib2geom (called py2geom). One of the problems has been to get it working on Windows. I succeeded in that, so now there are 2 problems left: 1. getting py2geom standard in Inkscape build system. This is not an easy problem I think. 2. incomplete bindings. The 2geom bindings are incomplete, but that might not be too much a problem at start. It will definitely be a big boost when Inkscape started using py2geom.
I hope we can add py2geom support in Inkscape 0.48. (we really shouldn't try to get this in 0.47). Or... Perhaps we should not supply py2geom with Inkscape at all, and have users install it by themselves? (not easily done on Windows at the moment though).