chiark / gitweb /
Add option to have the center of the printer at 0,0 for RoStock printers. #310 #266
[cura.git] / Cura / slice / __main__.py
index bd2a0bdb69ae81a7d745628674247c2a2ec1abf2..15eee89172067f16f5af0f753d397dd5bf786bfd 100644 (file)
@@ -38,6 +38,8 @@ def main():
                        position += [0,0,1]
                filenames = fixUTF8(args[idx + 1]).split('|')
 
+               profile.setTempOverride('object_center_x', position[0])
+               profile.setTempOverride('object_center_y', position[1])
                if idx == 0:
                        resultFile.write(';TYPE:CUSTOM\n')
                        resultFile.write(profile.getAlterationFileContents('start.gcode').replace('?filename?', ' '.join(filenames).encode('ascii', 'replace')))