FullControlXYZ / fullcontrol

Python version of FullControl for toolpath design (and more) - the readme below is best source of information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fc.transform(steps, 'gcode', gcode_controls) returns None

FrostiFish opened this issue · comments

commented

For example:
gcode = fc.transform(steps, 'gcode', gcode_controls)
print(gcode)

will output:
None

It does however generate a file

Thanks for the bug report!. I believe this issue only happens if the gcode_controls object (i.e. fc.GcodeControls()) has the attribute save_as defined. The code came about this way since it was kinda of seen as an either/or situation... you either get the gcode returned or you get the gcode saved to file. But this isn't really necessary so I've now changed the code to return the gcode string regardless of whether it is saved to file or not. I'll commit shortly.