Saving and adjusting per-build-surface Z offsets

I made a version of this that works like the Prusa firmware. I missed the way my MK3S worked. Build Sheet Manager & "Adjust Live Z" - #2 by garethky
It’s similar to this macro but with some important differences:

  • you don’t have to edit the save variables file, everything, including creating a new sheet is through commands.
  • you can use human readable names for build sheets
  • a macro overrides SET_GCODE_OFFSET to capture baby stepping moves. This works with all of the front ends.
  • baby stepping moves are auto saved to the sheet. No need to remember to save or run an additional command. (This is the Prusa magic)
  • it knows the difference between baby stepping and regular z offset adjustments and it only records baby stepping.
  • it works with CALIBRATE_Z because it’s not an absolute offset. Think of it as storing the amount of “squish” you want per sheet.
  • I worked out the right JINJA incantation to store the values as JSON objects.
2 Likes