Slic3r supports a variety of placeholders from settings and some internal values for use in Custom GCode.
[input_filename]
- Input filename[input_filename_base]
- Input filename with extension stripped
[timestamp]
- Current date/time
[scale]
[scale_0]
, [scale_1]
, ... for specific scales[print_preset]
- name of the current print preset. Only available when using plater GUI.[filament_preset]
- name of the current filament preset. Only available when using plater GUI.[printer_preset]
- name of the current printer preset. Only available when using plater GUI.[layer_z]
- Z height of the active layer.
[layer_num]
- Integer number of the active layer.
[current_extruder]
- Currently selected extruder.
Note: Multi-value options can be called with indices, like [nozzle_diameter_1]
.
The following items are available only for Filament Start/End GCode.
[filament_extruder_id]
[current_retraction]
- Amount retracted for the current extruder.
The following items are available only during Toolchange Custom GCode.
[next_extruder]
[prev_extruder]
[next_retraction]
[previous_retraction]