Hi,
As I reported earlier, the Envelope extension (AKA Summers Night) is broken in 0.44 and 0.45. I finally got time to look at it an the fix is trivial, just deleting a line. Three other lines can also be deleted as they are no longer necessary. It was due to a flip in the y coordinate. Patch attached.
Tav
Tavmjong Bah wrote:
As I reported earlier, the Envelope extension (AKA Summers Night) is broken in 0.44 and 0.45. I finally got time to look at it an the fix is trivial, just deleting a line. Three other lines can also be deleted as they are no longer necessary. It was due to a flip in the y coordinate. Patch attached.
Tav, the y coord flip hasn't yet happened. :-)
I'll try to find some time to look into this. Please make sure there is a bug in the tracker assigned to me.
Aaron Spike
Index: share/extensions/summersnight.py
--- share/extensions/summersnight.py (revision 14044) +++ share/extensions/summersnight.py (working copy) @@ -50,10 +50,6 @@ f = os.popen("inkscape --query-%s --query-id=%s %s" % (query,id,file)) self.q[query] = float(f.read()) f.close()
#glean document height from the SVG
docheight = inkex.unittouu(inkex.xml.xpath.Evaluate('/svg/@height',self.document)[0].value)
#Flip inkscapes transposed renderer coords
self.q['y'] = docheight - self.q['y'] - self.q['height'] #process path d = obj.attributes.getNamedItem('d')
On Tue, 2007-02-06 at 06:50 -0600, Aaron Spike wrote:
Tavmjong Bah wrote:
As I reported earlier, the Envelope extension (AKA Summers Night) is broken in 0.44 and 0.45. I finally got time to look at it an the fix is trivial, just deleting a line. Three other lines can also be deleted as they are no longer necessary. It was due to a flip in the y coordinate. Patch attached.
Tav, the y coord flip hasn't yet happened. :-)
The effect uses command line arguments to determine the bounding boxes.
From the 0.44.1 release notes:
* The --query-* command line parameters now return the true SVG bounding box of the object instead of the Inkscape coordinate system bbox (with inverted Y axis). The new behavior makes more sense for scripting use of Inkscape.
I'll try to find some time to look into this. Please make sure there is a bug in the tracker assigned to me.
Will do.
Aaron Spike
Index: share/extensions/summersnight.py
--- share/extensions/summersnight.py (revision 14044) +++ share/extensions/summersnight.py (working copy) @@ -50,10 +50,6 @@ f = os.popen("inkscape --query-%s --query-id=%s %s" % (query,id,file)) self.q[query] = float(f.read()) f.close()
#glean document height from the SVG
docheight = inkex.unittouu(inkex.xml.xpath.Evaluate('/svg/@height',self.document)[0].value)
#Flip inkscapes transposed renderer coords
self.q['y'] = docheight - self.q['y'] - self.q['height'] #process path d = obj.attributes.getNamedItem('d')
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Tavmjong Bah wrote:
On Tue, 2007-02-06 at 06:50 -0600, Aaron Spike wrote:
Tavmjong Bah wrote:
As I reported earlier, the Envelope extension (AKA Summers Night) is broken in 0.44 and 0.45. I finally got time to look at it an the fix is trivial, just deleting a line. Three other lines can also be deleted as they are no longer necessary. It was due to a flip in the y coordinate. Patch attached.
Tav, the y coord flip hasn't yet happened. :-)
The effect uses command line arguments to determine the bounding boxes.
From the 0.44.1 release notes:
* The --query-* command line parameters now return the true SVG bounding box of the object instead of the Inkscape coordinate system bbox (with inverted Y axis). The new behavior makes more sense for scripting use of Inkscape.
Ah hah! We speak of different y coord flips. Excellent. (That was a really annoying hack for the scripting mechanism.)
I'll fix this soonish.
Thanks! Aaron Spike
Sorry for not reading the f* manual, but how do a user makes use of the scripting capabilities of Inkscape, in (for example) Ubuntu... scripting is the power of the Text Class! (the other 2 classes are: audio and image... that's the "computing triad" ie+)
+
/home/i/IMG /home/i/TXT /home/i/audio
2007/2/6, Tavmjong Bah <tavmjong@...8...>:
On Tue, 2007-02-06 at 06:50 -0600, Aaron Spike wrote:
Tavmjong Bah wrote:
As I reported earlier, the Envelope extension (AKA Summers Night)
is
broken in 0.44 and 0.45. I finally got time to look at it an the fix
is
trivial, just deleting a line. Three other lines can also be deleted
as
they are no longer necessary. It was due to a flip in the y
coordinate.
Patch attached.
Tav, the y coord flip hasn't yet happened. :-)
The effect uses command line arguments to determine the bounding boxes.
From the 0.44.1 release notes:
* The --query-* command line parameters now return the true SVG bounding box of the object instead of the Inkscape coordinate system bbox (with inverted Y axis). The new behavior makes more sense for scripting use of Inkscape.
I'll try to find some time to look into this. Please make sure there is a bug in the tracker assigned to me.
Will do.
Aaron Spike
Index: share/extensions/summersnight.py
--- share/extensions/summersnight.py (revision 14044) +++ share/extensions/summersnight.py (working copy) @@ -50,10 +50,6 @@ f = os.popen("inkscape --query-%s --query-id=%s %s" %
(query,id,file))
self.q[query] = float(f.read()) f.close()
#glean document height from the SVG
docheight = inkex.unittouu(inkex.xml.xpath.Evaluate
('/svg/@height',self.document)[0].value)
#Flip inkscapes transposed renderer coords
self.q['y'] = docheight - self.q['y'] - self.q['height'] #process path d = obj.attributes.getNamedItem('d')
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 2/6/07, Esteban Barahona wrote:
Sorry for not reading the f* manual, but how do a user makes use of the scripting capabilities of Inkscape
http://wiki.inkscape.org:8080/wiki/index.php/ExtensionArchitecture
Note the " See Also" section on that page.
A tutorial on writing extensions is planned for 0.46.
Alexandre
participants (4)
-
Aaron Spike
-
Alexandre Prokoudine
-
Esteban Barahona
-
Tavmjong Bah