For people facing the same problem but wanting the "Pause at height" script to work with both absolute and relative extrusion (depending on your "Relative Extrusion" setting under "Special Modes"):
Replace the following line in PauseAtHeight.py file
prepend_gcode += self.putValue(M = 82) + " ; switch back to absolute E values\n"
with the following lines
extrusion_mode_string = "absolute" extrusion_mode_numeric = 82 extruders = list(Application.getInstance().getGlobalContainerStack().extruders.values()) relative_extrusion = extruders[0].getProperty("relative_extrusion", "value") if relative_extrusion: extrusion_mode_string = "relative" extrusion_mode_numeric = 83 prepend_gcode += self.putValue(M = extrusion_mode_numeric) + " ; switch back to " + extrusion_mode_string + " E values\n"
Hope this helps.
Edited by edankleef-
1
Recommended Posts
GregValiant 1,342
In the Cura folder ...C:\Program Files\Ultimaker Cura 4.X\plugins\PostProcessingPlugin\scripts\PauseAtHeight.py
The PauseAtHeight.py file can be opened in a text editor. The following line is near the end:
prepend_gcode += self.putValue(M = 82) + " ; switch back to absolute E values\n"
Change the 2 to 3, save the file, restart Cura. I'm not a Python guy but you should be good to go.
Cura 4.7 PauseAtHeight allows you to add a gcode command "Gcode after the pause" but it goes in as the first line after the pause which doesn't work since the M82 is a few lines later.
Link to post
Share on other sites
valemaio2 4
Thank you GregValiant, that seemed to have done the trick.
Link to post
Share on other sites