I made an addon for Klipper that allows to get the offset between tools or z-probe and tools for any toolchanger or IDEX printer running Klipper.
I tried to make this as generic as possible and hope this will help more users.
This works with a microscope or a endoscope camera that points up towards the nozzle and OpenCV for detecting the nozzle and display progress in Mainsail. It can all be automated with macros.
I appreciate any feedback.
I also made a demonstration video: