Skip to content

Modification Tools

little-did-I-know edited this page Mar 1, 2026 · 1 revision

Modification Tools

Add pauses, filament changes, Z-offsets, and more to your G-code. Modifications are staged in a list, previewed in 3D, then exported as a modified file.


Workflow

  1. Select a modification tab in the right panel
  2. Configure the modification (layer, parameters)
  3. Click Add — it appears in the modification list at the bottom
  4. Repeat for additional modifications
  5. Preview in the 3D view (modification markers appear as colored planes)
  6. Click Export to download the modified G-code

Modification added

Visual with modifications

The modification list at the bottom of the right panel shows all pending modifications. Drag to reorder, click × to delete. A counter badge on each tab shows how many modifications of that type are pending.


Pause

Insert a pause at a specific layer so you can add inserts, change colors, or inspect the print.

Mid-layer pause

  • Layer: select from dropdown or click a layer in the navigator
  • Mid-layer: pause partway through a layer (a percentage slider appears)
  • Reminder: optional message displayed in the G-code as a comment
  • Move head away: when enabled, the pause sequence:
    1. Retract filament
    2. Lift Z by a configurable amount
    3. Move head to park position (front-left by default)
    4. Wait for user to resume
    5. Un-retract and continue

Pause G-code is firmware-specific — see Firmware Profiles.


Filament Change

Filament Change tab

Trigger a filament swap at a layer boundary.

  • Standard firmware: inserts M600 (requires ADVANCED_PAUSE_FEATURE on Marlin)
  • Bambu Lab AMS: inserts M1020 S<slot> where slot 0-3 maps to AMS positions

Z-Offset

Z-Offset tab

Apply a vertical offset to all moves across a layer range. Useful for compensating for embedded inserts that change the effective print surface height.

  • Offset (mm): positive = up, negative = down
  • Start/End layer: range of affected layers
  • Applies to all G0, G1, G2, G3 moves with a Z parameter

Eject

Eject tab

Add an automatic eject sequence at the end of the print:

  • Bed Y position: how far forward to push the bed
  • Head Z clearance: how high to lift the nozzle
  • Feed rate: speed of eject moves
  • Heater off: optionally turn off bed and nozzle heaters
  • Home Z: optionally home the Z axis after eject
  • Loop mode: adds a restart loop for continuous printing (requires external automation)

Custom G-Code

Insert arbitrary G-code at a specific layer or at the end of the file.

  • Multi-line input supported
  • Lines are wrapped with identifying comments (; -- custom gcode start -- / ; -- custom gcode end --)

See the G-code Reference for a list of commands.


Recovery

Recovery tab

Resume printing from a failed layer. The tool strips all G-code before the target layer, adjusts Z-heights so printing starts at the bed surface, and preserves the preamble (homing, heating, etc.).

  • Recovery layer: the layer to resume from
  • The modified file starts with the original preamble, then jumps directly to the recovery layer

Exporting

After adding modifications, click Export to download the modified G-code file.

Export settings

PrusaSlicer users: Uncheck the binary export option to ensure you're working with plain G-code.


← Viewing & Navigation | Analysis →

Clone this wiki locally