mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
parent
7c70ace8f0
commit
a0a353e33c
1 changed files with 18 additions and 2 deletions
|
@ -25,7 +25,7 @@ class PauseAtHeight(Script):
|
||||||
"label": "Pause at",
|
"label": "Pause at",
|
||||||
"description": "Whether to pause at a certain height or at a certain layer.",
|
"description": "Whether to pause at a certain height or at a certain layer.",
|
||||||
"type": "enum",
|
"type": "enum",
|
||||||
"options": {"height": "Height", "layer_no": "Layer No."},
|
"options": {"height": "Height", "layer_no": "Layer Number"},
|
||||||
"default_value": "height"
|
"default_value": "height"
|
||||||
},
|
},
|
||||||
"pause_height":
|
"pause_height":
|
||||||
|
@ -49,6 +49,14 @@ class PauseAtHeight(Script):
|
||||||
"minimum_value_warning": "1",
|
"minimum_value_warning": "1",
|
||||||
"enabled": "pause_at == 'layer_no'"
|
"enabled": "pause_at == 'layer_no'"
|
||||||
},
|
},
|
||||||
|
"pause_method":
|
||||||
|
{
|
||||||
|
"label": "Method",
|
||||||
|
"description": "The method or gcode command to use for pausing.",
|
||||||
|
"type": "enum",
|
||||||
|
"options": {"marlin": "Marlin (M0)", "bq": "BQ (M25)", "reprap": "RepRap (M226)", "repetier": "Repetier (@pause)"},
|
||||||
|
"default_value": "marlin"
|
||||||
|
},
|
||||||
"head_park_x":
|
"head_park_x":
|
||||||
{
|
{
|
||||||
"label": "Park Print Head X",
|
"label": "Park Print Head X",
|
||||||
|
@ -155,6 +163,14 @@ class PauseAtHeight(Script):
|
||||||
initial_layer_height = Application.getInstance().getGlobalContainerStack().getProperty("layer_height_0", "value")
|
initial_layer_height = Application.getInstance().getGlobalContainerStack().getProperty("layer_height_0", "value")
|
||||||
display_text = self.getSettingValueByKey("display_text")
|
display_text = self.getSettingValueByKey("display_text")
|
||||||
|
|
||||||
|
pause_method = self.getSettingValueByKey("pause_method")
|
||||||
|
pause_command = {
|
||||||
|
"marlin": self.putValue(M = 0),
|
||||||
|
"bq": self.putValue(M = 25),
|
||||||
|
"reprap": self.putValue(M = 226),
|
||||||
|
"repetier": self.putValue("@pause")
|
||||||
|
}[pause_method]
|
||||||
|
|
||||||
is_griffin = False
|
is_griffin = False
|
||||||
|
|
||||||
# T = ExtruderManager.getInstance().getActiveExtruderStack().getProperty("material_print_temperature", "value")
|
# T = ExtruderManager.getInstance().getActiveExtruderStack().getProperty("material_print_temperature", "value")
|
||||||
|
@ -308,7 +324,7 @@ class PauseAtHeight(Script):
|
||||||
prepend_gcode += "M117 " + display_text + "\n"
|
prepend_gcode += "M117 " + display_text + "\n"
|
||||||
|
|
||||||
# Wait till the user continues printing
|
# Wait till the user continues printing
|
||||||
prepend_gcode += self.putValue(M = 0) + " ; Do the actual pause\n"
|
prepend_gcode += pause_command + " ; Do the actual pause\n"
|
||||||
|
|
||||||
if not is_griffin:
|
if not is_griffin:
|
||||||
if control_temperatures:
|
if control_temperatures:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue