mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 20:58:58 +08:00
Cleaned up timelapse post processing script (issue #6730)
This commit is contained in:
parent
1fc0705c31
commit
81429f8985
@ -85,7 +85,6 @@ class TimeLapse(Script):
|
||||
gcode_to_append += self.putValue(M=400) + " ;Wait for moves to finish\n"
|
||||
gcode_to_append += trigger_command + " ;Snap Photo\n"
|
||||
gcode_to_append += self.putValue(G=4, P=pause_length) + " ;Wait for camera\n"
|
||||
gcode_to_append += self.putValue()
|
||||
|
||||
for idx, layer in enumerate(data):
|
||||
for line in layer.split("\n"):
|
||||
@ -98,7 +97,7 @@ class TimeLapse(Script):
|
||||
if ";LAYER:" in line:
|
||||
layer += gcode_to_append
|
||||
|
||||
layer += "G0 X" + str(last_x) + " Y" + str(last_y)+"\n"
|
||||
layer += "G0 X%s Y%s\n" % (last_x, last_y)
|
||||
|
||||
data[idx] = layer
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user