mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add beginning and end gcode comments
Signed-off-by: Wayne Porter <wporter82@gmail.com>
This commit is contained in:
parent
26bbf3ef0e
commit
03c0faaeca
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ class TimeLapse(Script):
|
||||||
y_park = self.getSettingValueByKey("head_park_y")
|
y_park = self.getSettingValueByKey("head_park_y")
|
||||||
trigger_cmd = self.getSettingValueByKey("trigger_cmd")
|
trigger_cmd = self.getSettingValueByKey("trigger_cmd")
|
||||||
pause_length = self.getSettingValueByKey("pause_length")
|
pause_length = self.getSettingValueByKey("pause_length")
|
||||||
gcode_to_append = ""
|
gcode_to_append = ";TimeLapse Begin"
|
||||||
|
|
||||||
if park_print_head:
|
if park_print_head:
|
||||||
gcode_to_append += self.putValue(G = 90) + ";Absolute positioning\n"
|
gcode_to_append += self.putValue(G = 90) + ";Absolute positioning\n"
|
||||||
|
@ -83,6 +83,7 @@ class TimeLapse(Script):
|
||||||
gcode_to_append += self.putValue(M = 400) + ";Wait for moves to finish\n"
|
gcode_to_append += self.putValue(M = 400) + ";Wait for moves to finish\n"
|
||||||
gcode_to_append += trigger_cmd + ";Snap Photo\n"
|
gcode_to_append += trigger_cmd + ";Snap Photo\n"
|
||||||
gcode_to_append += self.putValue(G = 4, P = pause_length) + ";Wait for camera\n"
|
gcode_to_append += self.putValue(G = 4, P = pause_length) + ";Wait for camera\n"
|
||||||
|
gcode_to_append += ";TimeLapse End"
|
||||||
for layer in data:
|
for layer in data:
|
||||||
# Check that a layer is being printed
|
# Check that a layer is being printed
|
||||||
lines = layer.split("\n")
|
lines = layer.split("\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue