mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add more ultigcode retract and unretract. CURA-5491
This commit is contained in:
parent
e61ad750b7
commit
b77220b260
1 changed files with 10 additions and 2 deletions
|
@ -304,14 +304,22 @@ class PauseAtHeight(Script):
|
|||
# and retract again, the properly primes the nozzle
|
||||
# when changing filament.
|
||||
if retraction_amount != 0:
|
||||
prepend_gcode += self.putValue(G=1, E=-retraction_amount, F=retraction_speed * 60) + "\n"
|
||||
if is_ultigcode:
|
||||
prepend_gcode += self.putValue(G=10) + "; retract for ultigcode\n"
|
||||
else:
|
||||
prepend_gcode += self.putValue(G=1, E=-retraction_amount, F=retraction_speed * 60) + "\n"
|
||||
|
||||
# Move the head back
|
||||
prepend_gcode += self.putValue(G=1, Z=current_z + 1, F=300) + "\n"
|
||||
prepend_gcode += self.putValue(G=1, X=x, Y=y, F=9000) + "\n"
|
||||
if retraction_amount != 0:
|
||||
prepend_gcode += self.putValue(G=1, E=retraction_amount, F=retraction_speed * 60) + "\n"
|
||||
if is_ultigcode:
|
||||
prepend_gcode += self.putValue(G=11) + "; unretract for ultigcode\n"
|
||||
else:
|
||||
prepend_gcode += self.putValue(G=1, E=retraction_amount, F=retraction_speed * 60) + "\n"
|
||||
prepend_gcode += self.putValue(G=1, F=9000) + "\n"
|
||||
|
||||
|
||||
prepend_gcode += self.putValue(M=82) + "\n"
|
||||
|
||||
# reset extrude value to pre pause value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue