chiark / gitweb /
Restart print close to original Z height, for special case where pausing below 15mm...
authorJames Walker <github@jzwalker.id.au>
Sun, 11 Aug 2013 13:00:01 +0000 (23:00 +1000)
committerJames Walker <github@jzwalker.id.au>
Sun, 11 Aug 2013 13:00:01 +0000 (23:00 +1000)
Cura/plugins/pauseAtZ.py

index 89b7ac2cde4bc7ea7ceb350670740865efeb093e..d0f733e8d68bec774a5b132a716f7ac35512c8aa 100644 (file)
@@ -61,6 +61,8 @@ with open(filename, "w") as f:
                                        f.write("G1 E%f F6000\n" % (retractAmount))
                                        f.write("G1 E-%f F6000\n" % (retractAmount))
                                        #Move the head back
+                                       if z < 15:
+                                               f.write("G1 Z%f F300\n" % (z+1))
                                        f.write("G1 X%f Y%f F9000\n" % (x, y))
                                        f.write("G1 E%f F6000\n" % (retractAmount))
                                        f.write("G1 F9000\n")