tools.cobbled-paths/svg_to_hpgl.py

19 lines
532 B
Python
Raw Normal View History

2024-03-27 11:23:21 +01:00
# from hpgl_multipen_output import HpglMultipenOutput
from hpgl_output_adapted import HpglOutputAdapted
2024-03-26 20:42:04 +01:00
def svgToHPGL (path, speed=1, penCount=8, force=2):
2024-03-27 11:23:21 +01:00
e = HpglOutputAdapted()
2024-03-26 20:42:04 +01:00
e.affect([
'--orientation', '0',
'--force', '0',
'--overcut', '0',
'--precut', 'false',
'--flat', '4',
'--toolOffset', '0',
'--autoAlign', 'false',
'--speed', str(speed),
'--penCount', str(penCount),
'--force', str(force),
path], False)
return e.hpgl