mise à jour d'une extension pour 0.91

Asked by kelu28

Bonjour,
je souhaite utiliser l'extension: http://www.reidb.net/LaserLivingHinges.html
Elle n'est pas ecrite pour la 0.91.
j'ai essayer de mettre à jour le code...
mais je n'y arrive pas...

Quelqu'un pour m'aider?

Luc
------------
Traceback (most recent call last):

  File "LivingHinge.py", line 548, in <module>

    effect.affect()

  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 268, in affect

    self.effect()

  File "LivingHinge.py", line 530, in effect

    LivingHinge2((x+(Z/2), y), ((x+(Z/2)+(EllipseCircumference(X/2, Z/2)/4)), y + (dy)), hingeThick)

  File "LivingHinge.py", line 199, in LivingHinge2

    space = inkex.Effect.unittouu( str(space) + unit )

TypeError: unbound method unittouu() must be called with Effect instance as first argument (got str instance instead)
------------------

Question information

Language:
French Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

Hi kelu28,

this is due to a change in how the extension calls to unit conversion work.

See http://wiki.inkscape.org/wiki/index.php/Release_notes/0.91#Units:_Breaking_change

For a fix, please refer to the author of the extension. You might also find some experienced Inkscape users who can help at http://inkscapeforum.com , if the author does not respond.

Kind regards,
 Maren

Can you help with this problem?

Provide an answer of your own, or ask kelu28 for more information if necessary.

To post a message you must log in.