Pause at layer height (Simplify3D)

Pause at layer X code

(Thanks to Virág Adorján in the Wanhao Duplicator i3 Facebook group for this tip!)

In Simplify3D, you can use a script that will pause the print job and move the print head to coordinates of your choosing.  This is useful or changing the filament color, or adding parts to be captured in the print.

In the process settings, go to the Scripts tab.  At the bottom is a box labeled “Additional terminal commands for post processing.”  In this box, add a script such as the following example:

{REPLACE "\n; layer 19, Z = " "; layer 19\nG1 X190.000000 Y5.000000\nM25\nG1 X190.000000 Y5.000000\n; layer 19 "}

Replace “layer 19” with your desired layer number.  You can also change the X and Y coordinates with where you would like the print head to be parked for the pause operation.  The coordinates above (X190, Y5) will put the print head in the front right corner of the bed.

After the gcode is saved you may look for something like:

; layer 19
G1 X190.000000 Y5.000000
G1 X190.000000 Y5.000000
; layer 19

To continue printing you have to select on the printer from the menu -> sd card -> continue printing, or press the Resume Print button in OctoPrint.

Make sure the script is only 1 line.  If you save the profile and reload it, S3D may replace the comma after the layer number with a line break.  This will cause the script to fail, so check this each time you need to use it.



  • Before resuming the print, you can use the control box to home the X and Y axes (do not “home all” or home the Z axis!) to realign the X and Y axes if you fear you moved the print head or the bed.  When you resume the print, the nozzle will return to the pause coordinates and then resume the print.
  • If you adjust the Z height using the control panel, be sure to put it back to the precise location before resuming.  It will not automatically return to the Z height it was at when it paused.
  • Don’t use the extruder (either with the Extruder Position menu option, or extruding/retracting with host control software such as OctoPrint) when changing filament.  When you resume, it will return the extruder to the position it was at when paused.


Skip to toolbar