All credit goes to @dudeofawesome -> https://github.com/dudeofawesome/klipper-config He created the Marcos!
Note: Cura Users!
*(Cura slicer plugin) To make the macro to work in Cura slicer, you need to install the post process plugin MeshPrintSize.py
(original credit: frankbags, I just made only slight modification)
- In cura menu
Help
->Show configuration folder
- Copy
MeshPrintSize.py
intoscripts
folder - Restart Cura
- In cura menu
Extensions
->Post processing
->Modify G-Code
and selectMesh Print Size
.
CONFIG
-
-
Slicer configuration
-
SuperSlicer
Printer Settings
→Custom G-Code
→Start G-Code
;Klipper start print macro START_PRINT HOTEND={first_layer_temperature[initial_extruder]+extruder_temperature_offset[initial_extruder]} BED={first_layer_bed_temperature} RELATIVE_E_MODE={use_relative_e_distances} PROBE=true PROBE_AREA_START={first_layer_print_min[0]},{first_layer_print_min[1]} PROBE_AREA_END={first_layer_print_max[0]},{first_layer_print_max[1]}
-
Cura
Note:
PROBE_AREA_START
andPROBE_AREA_END
rely on a non-official Cura plugin. Look at Note from the beginning!Settings
→Printers
→Machine Settings
→Start G-code
;Klipper start print macro START_PRINT HOTEND={material_print_temperature_layer_0} BED={material_bed_temperature_layer_0} RELATIVE_E_MODE={relative_extrusion} PROBE=true PROBE_AREA_START=%MINX%,%MINY% PROBE_AREA_END=%MAXX%,%MAXY%
-
-
-
-
Slicer configuration
-
SuperSlicer
Printer Settings
→Custom G-Code
→End G-Code
END_PRINT ;Klipper end print macro
-
Cura
Settings
→Printers
→Machine Settings
→End G-code
END_PRINT ;Klipper end print macro
-
-
-
-
Slicer configuration
-
SuperSlicer
Printer Settings
→Custom G-Code
→Before layer change G-Code
BEFORE_LAYER_CHANGE ;{layer_z}
-
Cura
Extensions
→Post Processing
→Modify G-Code
→Add a script
→Insert at layer change
BEFORE_LAYER_CHANGE
-
-