Merge branch 'main' into AddCoolingProfile-Update

This commit is contained in:
HellAholic 2026-01-15 20:24:46 +01:00 committed by GitHub
commit aa78d7636c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 6471 additions and 6424 deletions

View file

@ -297,6 +297,14 @@ class AddCoolingProfile(Script):
"default_value": false,
"enabled": false
},
"enable_off_fan_speed_enable":
{
"label": "Hidden setting",
"description": "For dual extruder printers, this enables 'enable_off_fan_speed'.",
"type": "bool",
"default_value": false,
"enabled": false
},
"enable_off_fan_speed":
{
"label": "Enable 'Off speed' of the idle fan",

View file

@ -50,7 +50,7 @@ class ColorMix(Script):
"description": "Select model to apply to for print one at a time print sequence. 0 = everything",
"type": "int",
"default_value": 0,
"minimum_value": "0"
"minimum_value": 0
},
"start_height":
{
@ -58,7 +58,7 @@ class ColorMix(Script):
"description": "Value to start at (mm or layer)",
"type": "float",
"default_value": 0,
"minimum_value": "0"
"minimum_value": 0
},
"behavior":
{
@ -74,7 +74,7 @@ class ColorMix(Script):
"description": "Value to stop at (mm or layer)",
"type": "float",
"default_value": 0,
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "start_height",
"enabled": "behavior == 'blend_value'"
},
@ -84,7 +84,7 @@ class ColorMix(Script):
"description": "First extruder percentage 0-100",
"type": "float",
"default_value": 100,
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "0",
"maximum_value_warning": "100"
},
@ -94,7 +94,7 @@ class ColorMix(Script):
"description": "First extruder percentage 0-100 to finish blend",
"type": "float",
"default_value": 0,
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "0",
"maximum_value_warning": "100",
"enabled": "behavior == 'blend_value'"
@ -112,7 +112,7 @@ class ColorMix(Script):
m = re.search("^[+-]?[0-9]*", subPart)
else:
#the minus at the beginning allows for negative values, e.g. for delta printers
m = re.search("^[-]?[0-9]*\.?[0-9]*", subPart)
m = re.search("^[-]?[0-9]*\\.?[0-9]*", subPart)
if m == None:
return default
try:

View file

@ -70,7 +70,7 @@ class CreateThumbnail(Script):
"unit": "px",
"type": "int",
"default_value": 32,
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "12",
"maximum_value_warning": "800"
},
@ -81,7 +81,7 @@ class CreateThumbnail(Script):
"unit": "px",
"type": "int",
"default_value": 32,
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "12",
"maximum_value_warning": "600"
},

View file

@ -200,6 +200,7 @@ class DisplayInfoOnLCD(Script):
"label": "Enable Countdown to Pauses",
"description": "If print sequence is 'one_at_a_time' this is false. This setting is always hidden.",
"type": "bool",
"default_value": false,
"value": false,
"enabled": false
},

View file

@ -101,7 +101,6 @@ class FilamentChange(Script):
"type": "enum",
"options": {"U": "Marlin (M600 U)", "L": "Reprap (M600 L)"},
"default_value": "U",
"value": "\\\"L\\\" if machine_gcode_flavor==\\\"RepRap (RepRap)\\\" else \\\"U\\\"",
"enabled": "enabled and not firmware_config"
},
"machine_gcode_flavor":
@ -122,7 +121,7 @@ class FilamentChange(Script):
"Repetier": "Repetier"
},
"default_value": "RepRap (Marlin/Sprinter)",
"enabled": "false"
"enabled": false
},
"enable_before_macro":
{
@ -172,6 +171,13 @@ class FilamentChange(Script):
for key in ["machine_gcode_flavor"]:
self._instance.setProperty(key, "value", global_container_stack.getProperty(key, "value"))
# Set retract method based on gcode flavor
gcode_flavor = global_container_stack.getProperty("machine_gcode_flavor", "value")
if gcode_flavor == "RepRap (RepRap)":
self._instance.setProperty("retract_method", "value", "L")
else:
self._instance.setProperty("retract_method", "value", "U")
def execute(self, data: List[str]):
"""Inserts the filament change g-code at specific layer numbers.

View file

@ -39,7 +39,7 @@ class PauseAtHeight(Script):
"unit": "mm",
"type": "float",
"default_value": 5.0,
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "0.27",
"enabled": "pause_at == 'height'"
},
@ -49,7 +49,7 @@ class PauseAtHeight(Script):
"description": "Enter the Number of the LAST layer you want to finish prior to the pause. Note that 0 is the first layer printed.",
"type": "int",
"value": "math.floor((pause_height - 0.27) / 0.1) + 1",
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "1",
"enabled": "pause_at == 'layer_no'"
},
@ -76,7 +76,7 @@ class PauseAtHeight(Script):
"description": "After this time steppers are going to disarm (meaning that they can easily lose their positions). Set this to 0 if you don't want to set any duration and disarm immediately.",
"type": "int",
"value": "0",
"minimum_value": "0",
"minimum_value": 0,
"minimum_value_warning": "0",
"maximum_value_warning": "1800",
"unit": "s",