Skip to content

Macro & Variable list

Merill edited this page Feb 26, 2024 · 5 revisions
absolute_correction
align_xy
allow_empty_layers
area_fill (sla)
autosave
avoid_crossing_not_first_layer
avoid_crossing_perimeters
bed_custom_model
bed_custom_texture
bed_shape[4]
bed_temperature[extruders]
before_layer_gcode
between_objects_gcode
bottle_cost (sla)
bottle_volume (sla)
bottle_weight (sla)
bottom_fill_pattern
bottom_solid_layers
bottom_solid_min_thickness
bridge_acceleration
bridge_angle
bridge_fan_speed[extruders]
bridge_internal_fan_speed[extruders]
bridge_flow_ratio
bridge_overlap
bridge_speed
bridge_speed_internal
bridged_infill_margin
brim_ears
brim_ears_max_angle
brim_ears_pattern
brim_inside_holes
brim_offset
brim_width
brim_width_interior
center
chamber_temperature[extruders]
clip_multipart_objects
color_change_gcode
colorprint_heights[?]
compatible_printers
compatible_printers_condition
compatible_printers_condition_cummulative
compatible_prints
compatible_prints_condition
compatible_prints_condition_cummulative
complete_objects
complete_objects_one_skirt
complete_objects_sort
cooling[extruders]
cooling_tube_length
cooling_tube_retraction
curve_smoothing_angle_concave
curve_smoothing_angle_convex
curve_smoothing_cutoff_dist
curve_smoothing_precision
cut
cut_grid
cut_x
cut_y
datadir
default_acceleration
default_filament_profile
default_print_profile
default_sla_material_profile (sla)
default_sla_print_profile (sla)
deretract_speed[extruders]
disable_fan_first_layers[extruders]
display_height (sla)
display_mirror_x (sla)
display_mirror_y (sla)
display_orientation (sla)
display_pixels_x (sla)
display_pixels_y (sla)
display_width (sla)
dont_arrange
dont_support_bridges
draft_shield
duplicate
duplicate_distance
duplicate_grid
elephant_foot_min_width (sla)
end_filament_gcode[extruders]
end_gcode
enforce_full_fill_volume
ensure_vertical_shell_thickness
export_3mf
export_amf
export_gcode
export_obj
export_sla
export_stl
export_svg
exposure_time (sla)
external_infill_margin
external_perimeter_cut_corners
external_perimeter_extrusion_width
external_perimeter_fan_speed[extruders]
external_perimeter_overlap
external_perimeter_speed
external_perimeters_first
external_perimeters_hole
external_perimeters_nothole
external_perimeters_vase
extra_loading_move
extra_perimeters
extra_perimeters_odd_layers
extra_perimeters_overhangs
extruder
extruder_clearance_height
extruder_clearance_radius
extruder_colour[extruders]
extruder_colour_int
extruder_fan_offset[extruders]
extruder_offset[extruders]
extruder_temperature_offset[extruders]
extrusion_axis
extrusion_multiplier[extruders]
extrusion_width
faded_layers (sla)
fan_always_on[extruders]
fan_below_layer_time[extruders]
fan_kickstart
fan_speedup_overhangs
fan_speedup_time
fast_tilt_time (sla)
feature_gcode
filament_colour_int[extruders]
filament_colour[extruders]
filament_cooling_final_speed[extruders]
filament_cooling_initial_speed[extruders]
filament_cooling_moves[extruders]
filament_cooling_zone_pause[extruders]
filament_cost[extruders]
filament_density[extruders]
filament_diameter[extruders]
filament_dip_extraction_speed[extruders]
filament_dip_insertion_speed[extruders]
filament_enable_toolchange_part_fan[extruders]
filament_enable_toolchange_temp[extruders]
filament_load_time[extruders]
filament_loading_speed_start[extruders]
filament_loading_speed[extruders]
filament_max_speed[extruders]
filament_max_volumetric_speed[extruders]
filament_max_wipe_tower_speed[extruders]
filament_melt_zone_pause[extruders]
filament_minimal_purge_on_wipe_tower[extruders]
filament_notes[extruders]
filament_ramming_parameters[extruders]
filament_settings_id[extruders]
filament_shrink[extruders]
filament_skinnydip_distance[extruders]
filament_soluble[extruders]
filament_toolchange_delay[extruders]
filament_toolchange_part_fan_speed[extruders]
filament_toolchange_temp[extruders]
filament_type[extruders]
filament_unload_time[extruders]
filament_unloading_speed_start[extruders]
filament_unloading_speed[extruders]
filament_use_fast_skinnydip[extruders]
filament_use_skinnydip[extruders]
filament_vendor[extruders]
filament_wipe_advanced_pigment[extruders]
fill_angle
fill_angle_increment
fill_density
fill_pattern
fill_smooth_distribution
fill_smooth_width
fill_top_flow_ratio
first_layer_acceleration
first_layer_bed_temperature[extruders]
first_layer_extrusion_width
first_layer_flow_ratio
first_layer_height
first_layer_infill_speed
first_layer_size_compensation
first_layer_speed
first_layer_temperature[extruders]
full_fan_speed_layer[extruders]
gamma_correction (sla)
gap_fill
gap_fill_min_area
gap_fill_overlap
gap_fill_speed
gcode_comments
gcode_flavor
gcode_label_objects
gcodeviewer
help
help_fff
help_sla
high_current_on_filament_swap
hole_size_compensation
hole_size_threshold
hole_to_polyhole
hollowing_closing_distance (sla)
hollowing_enable (sla)
hollowing_min_thickness (sla)
hollowing_quality (sla)
host_type
ignore_nonexistent_config
infill_acceleration
infill_connection
infill_dense
infill_dense_algo
infill_every_layers
infill_extruder
infill_extrusion_width
infill_first
infill_only_where_needed
infill_overlap
infill_speed
info
inherits
inherits_cummulative
initial_exposure_time (sla)
initial_layer_height (sla)
interface_shells
ironing
ironing_flowrate
ironing_spacing
ironing_speed
ironing_type
layer_gcode
layer_height
load
loglevel
machine_limits_usage
machine_max_acceleration_x[2] <- 0 is normal mode and 1 is silent mode
machine_max_acceleration_y[2]
machine_max_acceleration_z[2]
machine_max_acceleration_e[2]
machine_max_feedrate_x[2]
machine_max_feedrate_y[2]
machine_max_feedrate_z[2]
machine_max_feedrate_e[2]
machine_max_acceleration_extruding[2]
machine_max_acceleration_retracting[2]
machine_max_acceleration_travel[2]
machine_max_jerk_x[2]
machine_max_jerk_y[2]
machine_max_jerk_z[2]
machine_max_jerk_e[2]
machine_min_extruding_rate[2]
machine_min_travel_rate[2]
material_correction[2] (sla)
material_density (sla)
material_notes (sla)
material_type (sla)
material_vendor (sla)
max_exposure_time (sla)
max_fan_speed[extruders]
max_initial_exposure_time (sla)
max_layer_height[extruders]
max_print_height
max_print_speed
max_speed_reduction[extruders]
max_volumetric_extrusion_rate_slope_negative
max_volumetric_extrusion_rate_slope_positive
max_volumetric_speed
merge
milling_after_z
milling_cutter
milling_diameter[mills]
milling_extra_size
milling_post_process
milling_speed
milling_toolchange_end_gcode[mills]
milling_toolchange_start_gcode[mills]
milling_z_lift[mills]
min_exposure_time (sla)
min_fan_speed[extruders]
min_initial_exposure_time (sla)
min_layer_height[extruders]
min_length
min_print_speed[extruders]
min_skirt_length
min_width_top_surface
model_precision
no_perimeter_unsupported_algo
notes
nozzle_diameter[extruders]
only_one_perimeter_top
only_retract_when_crossing_perimeters
ooze_prevention
output
output_filename_format
output_format (sla)
over_bridge_flow_ratio
overhangs_reverse
overhangs_reverse_threshold
overhangs_speed
overhangs_width
overhangs_width_speed
pad_around_object (sla)
pad_around_object_everywhere (sla)
pad_brim_size (sla)
pad_enable (sla)
pad_max_merge_distance (sla)
pad_object_connector_penetration (sla)
pad_object_connector_stride (sla)
pad_object_connector_width (sla)
pad_object_gap (sla)
pad_wall_height (sla)
pad_wall_slope (sla)
pad_wall_thickness (sla)
parking_pos_retraction
pause_print_gcode
perimeter_acceleration
perimeter_bonding
perimeter_extruder
perimeter_extrusion_width
perimeter_loop
perimeter_loop_seam
perimeter_overlap
perimeter_speed
perimeters
post_process[?]
preset_name
print_extrusion_multiplier
print_host
print_host
print_retract_length
print_retract_lift
print_settings_id
print_temperature
printer_model
printer_notes
printer_settings_id
printer_technology
printer_variant
printer_vendor
printhost_apikey
printhost_apikey
printhost_authorization_type
printhost_cafile
printhost_cafile
printhost_password
printhost_port
printhost_user
raft_layers
relative_correction[2] (sla)
remaining_times
repair
resolution
retract_before_travel[extruders]
retract_before_wipe[extruders]
retract_layer_change[extruders]
retract_length_toolchange[extruders]
retract_length[extruders]
retract_lift_above[extruders]
retract_lift_below[extruders]
retract_lift_first_layer[extruders]
retract_lift_top[extruders]
retract_lift[extruders]
retract_restart_extra_toolchange[extruders]
retract_restart_extra[extruders]
retract_speed[extruders]
rotate
rotate_x
rotate_y
save
scale
scale_to_fit
seam_angle_cost
seam_position
seam_preferred_direction
seam_preferred_direction_jitter
seam_travel_cost
silent_mode
single_extruder_multi_material
single_extruder_multi_material_priming
single_instance
skirt_distance
skirt_extrusion_width
skirt_height
skirts
sla_material_settings_id (sla)
sla_print_settings_id (sla)
slice
slice_closing_radius
slow_tilt_time (sla)
slowdown_below_layer_time[extruders]
small_perimeter_max_length
small_perimeter_min_length
small_perimeter_speed
solid_fill_pattern
solid_infill_below_area
solid_infill_every_layers
solid_infill_extruder
solid_infill_extrusion_width
solid_infill_speed
solid_layers
solid_min_thickness
spiral_vase
split
standby_temperature_delta
start_filament_gcode[extruders]
start_gcode
support_base_diameter (sla)
support_base_height (sla)
support_base_safety_distance (sla)
support_buildplate_only (sla)
support_critical_angle (sla)
support_head_front_diameter (sla)
support_head_penetration (sla)
support_head_width (sla)
support_material
support_material_angle
support_material_auto
support_material_buildplate_only
support_material_contact_distance_bottom
support_material_contact_distance_top
support_material_contact_distance_type
support_material_enforce_layers
support_material_extruder
support_material_extrusion_width
support_material_interface_contact_loops
support_material_interface_extruder
support_material_interface_layers
support_material_interface_pattern
support_material_interface_spacing
support_material_interface_speed
support_material_pattern
support_material_solid_first_layer
support_material_spacing
support_material_speed
support_material_synchronize_layers
support_material_threshold
support_material_with_sheath
support_material_xy_spacing
support_max_bridge_length (sla)
support_max_bridges_on_pillar (sla)
support_max_pillar_link_distance (sla)
support_object_elevation (sla)
support_pillar_connection_mode (sla)
support_pillar_diameter (sla)
support_pillar_widening_factor (sla)
support_points_density_relative (sla)
support_points_minimal_distance (sla)
support_small_pillar_diameter_percent (sla)
supports_enable (sla)
sw_renderer
temperature[extruders]
template_custom_gcode
thin_perimeters
thin_perimeters_all
thin_walls
thin_walls_merge
thin_walls_min_width
thin_walls_overlap
thin_walls_speed
threads
thumbnails[2]
thumbnails_color
thumbnails_color_int
thumbnails_custom_color
thumbnails_with_bed
thumbnails_with_support
time_estimation_compensation
tool_name[extruders]
toolchange_gcode
top_fan_speed[extruders]
top_fill_pattern
top_infill_extrusion_width
top_solid_infill_speed
top_solid_layers
top_solid_min_thickness
travel_speed
use_firmware_retraction
use_relative_e_distances
use_volumetric_e
variable_layer_height
wipe[extruders]
wipe_advanced
wipe_advanced_algo
wipe_advanced_multiplier
wipe_advanced_nozzle_melted_volume
wipe_extra_perimeter[extruders]
wipe_into_infill
wipe_into_objects
wipe_tower
wipe_tower_bridging
wipe_tower_brim
wipe_tower_no_sparse_layers
wipe_tower_rotation_angle
wipe_tower_width
wipe_tower_x
wipe_tower_y
wiping_volumes_extruders[extruders]
wiping_volumes_matrix[extruders*extruders]
xy_inner_size_compensation
xy_size_compensation
z_offset
z_step

special macro variables:

bounding_box[6](minx, miny, minz, maxx, maxy, maxz) ( before 2.4, it's [4] (minx, miny, maxx, maxy) )
current_extruder (also filament_extruder_id in 2.7 and after)
current_object_idx
current_position[3] (x,y,z) (position of the nozzle)
current_object_position[2] (x,y) (position of the current object in the plater, since 2.5.59.3)
year
month
day
hour
minute
second
timestamp
filament_preset
first_layer_print_max[2]
first_layer_print_min[2]
first_layer_print_size
has_single_extruder_multi_material_priming
has_wipe_tower
initial_extruder
initial_tool
input_filename
input_filename_base
physical_printer_preset
print_bed_max[2]
print_bed_min[2]
print_bed_size[2]
print_preset
printer_preset
scale
total_layer_count
total_toolchanges (only if wipe tower)
version

prusa macro doc
special macro functions:

not(bool)->bool
min(e1,e2)->int
min(double1,double2)->double
max(e1,e2)->int
max(double1,double2)->double
random(min,max)->double
int(double)->int
exists(custom_var_name)->bool (test if the custom var exist)
default_bool(custom_var_name, bool) (set it to this default boolean value if it doesn't exist)
default_int(custom_var_name, int) (set it to this default int value if it doesn't exist)
default_double(custom_var_name, double) (set it to this default double value if it doesn't exist)
default_string(custom_var_name, string) (set it to this default string value if it doesn't exist)
ignore_legacy(bool) (will deactivate/activate [var_name] syntax)
Clone this wiki locally