jschuh / klipper-macros

A collection of useful macros for the Klipper 3D printer firmware
GNU General Public License v3.0
967 stars 173 forks source link

Help: How to add a cleaning nozzle movment to print_start #63

Closed fire1ce closed 1 year ago

fire1ce commented 1 year ago

First of all, great job on the macros and this repo! Since i don't want to change any values in the "original" macros, i would like to add a motion to clean my nozzle with a brush before starting printing. Would me mind sharing a way to do it with conjunction with your work?

Thanks in addvance!

jschuh commented 1 year ago

Look at variable_start_gcode_before_print described in the PRINT_START documentation. This is where you can put custom gcode that will run before any printing starts.

There's also a skeleton for a macro override wrapper (in case you need to do something more complicated).