Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
your extension bring me: Traceback (most recent call last): File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 381, in <module> e.affect() File "/usr/share/inkscape/extensions/inkex.py", line 267, in affect self.effect() File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 86, in effect letterElement = self.selected[self.options.ids[0]] KeyError: 'back' Traceback (most recent call last): File "shlomif_back_to_homepage_distort.py", line 212, in <module> distort_e.calc_out_fn() File "/usr/lib/python2.7/subprocess.py", line 544, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['python', '/home/jtx/.config/inkscape/extensions/bezierenvelope.py', '--id=back', '--id=for_envelope_path', '/tmp/tmp_6RFEd/with_path.svg']' returned non-zero exit status 1
El mar, 11-06-2013 a las 20:10 +0300, Shlomi Fish escribió:
Hi all,
I am resending this to the *-devel list due to getting now answers on the user list and someone suggesting on the list that I send it here.
Q: in my extension I have this:
class StyleEffect(GenericAddPathEffect): def effect(self): self.xpathSingle(u'svg:defs').insert(0, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="bk2hp_grad"> <stop style="stop-color:#0000ff;stop-opacity:1" offset="0" id="b2h_0" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.4" id="b2h_1" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.6" id="b2h_2" /> <stop style="stop-color:#0000ff;stop-opacity:1" offset="1" id="b2h_3" /> </svg:linearGradient>''') ) self.xpathSingle(u'svg:defs').insert(1, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="bk2hp_grad_rot" gradientTransform="rotate(90)" xlink:href="#bk2hp_grad" />''') )
self.xpathSingle(u'//*[@id="' + main_path_id() + '"]').set( 'style', simplestyle.formatStyle({ 'stroke': '#888888', 'stroke-width': '1pt', 'fill': 'url(#bk2hp_grad_rot)', } ))
Which generates a linearGradient and a rotated version of it. However, when I move the path filled with the rotation, it reverts to the non-rotated version.
I'm attaching it here. Why is Inkscape doing it? Is it a bug?
You can find the extension in question here:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
Regards,
Shlomi Fish
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel