离线
Traceback (most recent call last):
File "unicorn.py", line 108, in <module>
e.affect()
File "inkex.py", line 283, in affect
self.effect()
File "unicorn.py", line 102, in effect
parser.parse()
File "unicorn/svg_parser.py", line 230, in parse
self.svgWidth = self.getLength('width', 354) * 0.28222
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
导出出错, 看来八字不合.
离线
https://github.com/martymcguire/inkscape-unicorn/blob/master/src/unicorn/svg_parser.py
跟踪到这里出错:
230: self.svgWidth = self.getLength('width', 354) * 0.28222
231: self.svgHeight = self.getLength('height', 354) * 0.28222
估计这两个获取数据出错:
self.getLength('width', 354)
self.getLength('height', 354)
用一个数字替代上面的函数就能导出 gcode 文件。
离线
https://www.thingiverse.com/thing:5986/comments
For those of you just now trying this...
Go to File -> Document Properties
Under "Custom Size" change the units to pixels.
这个单位改成 px 生成就不会出错了。
离线