Ted Gould wrote:
-------- Forwarded Message -------- From: Ted Gould <ted@...11...> To: bulia byak <buliabyak@...400...>, Aaron Spike <aaron@...749...> Cc: Inkscape Devel List inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Extensions on win32 Date: Sun, 02 Mar 2008 21:00:16 -0800
On Sun, 2008-03-02 at 20:01 -0400, bulia byak wrote:
On Sun, Mar 2, 2008 at 9:59 AM, <J.B.C.Engelen@...1578...> wrote:
Now there should be a somewhat cleaner/better fix, however these two effects are broken again. The effects run successfully, but the parameters are not passed correctly.
In rev 17608, function plotter works but dimensions and add nodes do not. Ted, can you please look into whether this might be caused by your recent fixes?
With "Add Nodes" I get:
Traceback (most recent call last): File "/home/ted/Development/inkscape.work/install/share/inkscape/extensions/addnodes.py", line 91, in <module> e.affect() File "/home/ted/Development/inkscape.work/install/share/inkscape/extensions/inkex.py", line 154, in affect self.effect() File "/home/ted/Development/inkscape.work/install/share/inkscape/extensions/addnodes.py", line 81, in effect splits = math.ceil(length/self.options.max) ZeroDivisionError: float division
The inx file would seem to indicate that a value of 0 for max is unallowed. Are these constraints no longer enforced? When you run add nodes do are you passing 0 for the parameter?
<param name="max" type="float" min="0.1" max="10000.0" _gui-text="Maximum segment length (px)">10.0</param>
and with Dimensions I get:
/home/ted/Development/inkscape.work/install/share/inkscape/extensions/dimension.py:60: TagNameWarning: Tag names must not contain ':', lxml 2.0 will enforce well-formed tag names as required by the XML specification. marker.set('inkscape:stockid', name)
Aaron, do you have any ideas on what these could be caused by?
This is a real error in the script: marker.set('inkscape:stockid', name) should be: marker.set(inkex.addNS('stockid','inkscape'), name)
Aaron