Repository navigation
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.
- Select a modification tab in the right panel
- Configure the modification (layer, parameters)
- Click Add — it appears in the modification list at the bottom
- Repeat for additional modifications
- Preview in the 3D view (modification markers appear as colored planes)
- Click Export to download the modified G-code


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.
Insert a pause at a specific layer so you can add inserts, change colors, or inspect the print.

- 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:
- Retract filament
- Lift Z by a configurable amount
- Move head to park position (front-left by default)
- Wait for user to resume
- Un-retract and continue
Pause G-code is firmware-specific — see Firmware Profiles.

Trigger a filament swap at a layer boundary.
-
Standard firmware: inserts
M600(requiresADVANCED_PAUSE_FEATUREon Marlin) -
Bambu Lab AMS: inserts
M1020 S<slot>where slot 0-3 maps to AMS positions

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

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)
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.

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
After adding modifications, click Export to download the modified G-code file.

PrusaSlicer users: Uncheck the binary export option to ensure you're working with plain G-code.
← Viewing & Navigation | Analysis →
Getting Started
User Guide
Reference