Tip: Enable "Label Objects" to use the "Cancel Object" feature. If one object fails during a multi-object print, you can cancel just that object and let the others continue.
G-code Output Settings
Configure output file options, comments, and post-processing.
Verbose G-code
- Parameter
gcode_comments- Type
- Boolean
- Default
- Disabled
- Description
- Add descriptive comments to the G-code output. Useful for debugging but increases file size.
Label Objects
- Parameter
gcode_label_objects- Type
- Boolean
- Default
- Enabled
- Description
- Include object labels in G-code. Enables features like "Cancel Object" on compatible firmware.
Output Filename Format
- Parameter
output_filename_format- Type
- Text template
- Description
- Template for output filename. Supports variables like {input_filename}, {layer_height}, {filament_type}, etc.
Available Variables
| Variable | Description |
|---|---|
{input_filename_base} | Model filename without extension |
{layer_height} | Layer height value |
{filament_type} | Filament type (PLA, PETG, etc.) |
{print_time} | Estimated print time |
{filament_used} | Filament used in mm |
{nozzle_diameter} | Nozzle diameter |
{printer_model} | Printer model name |
Example Format
{input_filename_base}_{filament_type}_{layer_height}mm.gcode
Result: benchy_PLA_0.2mm.gcode
G-code Flavor
- Parameter
gcode_flavor- Options
- Marlin, Klipper, RepRapFirmware, Smoothieware, etc.
- Description
- The firmware dialect to use. Affects certain G-code commands and syntax.
Post-processing Scripts
- Parameter
post_process- Type
- Script path(s)
- Description
- Scripts to run on the G-code file after slicing. Can modify, analyze, or transform the output.
Use Relative E Distances
- Parameter
use_relative_e_distances- Type
- Boolean
- Default
- Enabled
- Description
- Use relative extrusion values (M83) instead of absolute (M82). Most modern firmware prefers relative.
Arc Fitting
- Parameter
arc_fitting- Type
- Boolean / Options
- Description
- Convert linear moves to arc commands (G2/G3) where possible. Reduces file size and can improve surface quality.
Firmware Compatibility
| Firmware | G-code Flavor | Notes |
|---|---|---|
| Marlin | Marlin | Most common, Ender, Prusa |
| Klipper | Klipper | Requires specific features enabled |
| RepRapFirmware | RepRapFirmware | Duet boards |
| Bambu Lab | Marlin (BBL) | Specialized Bambu Lab variant |