forked from rootiest/zippy-klipper_config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSET_MATERIAL.cfg
29 lines (28 loc) · 1013 Bytes
/
SET_MATERIAL.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Set Material-specific Configs
#
# Add this immediately after your start_print line of the start gcode in Prusa/SuperSlicer:
# SET_MATERIAL MATERIAL='{filament_type[initial_extruder]}'
#
# Add this immediately after your start_print line of the start gcode in Cura:
# SET_MATERIAL MATERIAL='{material_type}'
#
#
[gcode_macro SET_MATERIAL]
gcode:
{% set MATERIAL = params.MATERIAL|default('PLA')|string %}
{% if MATERIAL == 'PLA' %}
# Load bed mesh
#BED_MESH_PROFILE LOAD="pla_mesh"
# Set pressure_advance settings
#SET_PRESSURE_ADVANCE ADVANCE=0.035 SMOOTH_TIME=0.040
# Set z_offset settings
#SET_GCODE_OFFSET Z=0
{% elif MATERIAL == 'ABS' %}
#BED_MESH_PROFILE LOAD="pla_mesh"
#SET_PRESSURE_ADVANCE ADVANCE=0.035 SMOOTH_TIME=0.040
#SET_GCODE_OFFSET Z=0
{%else %}
#BED_MESH_PROFILE LOAD="default"
#SET_PRESSURE_ADVANCE ADVANCE=0.035 SMOOTH_TIME=0.040
#SET_GCODE_OFFSET Z=0
{% endif %}