d-bl / inkscape-bobbinlace

Inkscape plugins related to bobbin lace — grids and prikcings
https://d-bl.github.io/inkscape-bobbinlace
16 stars 6 forks source link

Random jitter #42

Closed veronika closed 3 years ago

veronika commented 3 years ago

Add support for random jittering of nodes in both ground and grid extensions

jo-pol commented 3 years ago

I'm getting an exception:

Traceback (most recent call last): File "lace_ground.py", line 260, in effect.run() File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/base.py", line 123, in run self.save_raw(self.effect()) File "lace_ground.py", line 256, in effect self.draw(result['data'],result['rowCount'],result['colCount']) File "lace_ground.py", line 172, in draw x1,y1 = self.jitter(nodeJitter,x1,y1) File "lace_ground.py", line 136, in jitter jitx = x + self.options.xrand(2.0random()-1.0)self.options.spacing/100 TypeError: unsupported operand type(s) for : 'NoneType' and 'float'

veronika commented 3 years ago

Jo, I was able to recreate the error you see by using the old inx file with the new py file. Please make sure you update both files for each extension.