I cannot stress enough that this branch has not been tested. DO NOT try it.
TODO:
[ ] Test it
[ ] Support tool remapping with the modal (aka rewrite remapping to use M863 and not overlap single print mode)
[ ] Remove the code blocking MK3s from working correctly
[ ] Support disabling the modal for MK3.5+
[ ] Override the filament being used so we show the selected one and not the one it thinks it's using.
How this works:
When a print is started, the print is immediately pause and the user is prompted to select a
filament. The plugin then sends a M863 E1 to enable tool remapping then for every tool a
M863 P# L# is sent to map every tool to the chosen one. When the print ends, the plugin sends a
M863 E0 to disable tool remapping.
This does mean you will always get the prompt modal for every print, but you can click skip and
have it preserve the default behavior. In a future release, I will try to read ahead and figure out
if only one tool was used in the profile.
I cannot stress enough that this branch has not been tested. DO NOT try it.
TODO:
How this works:
When a print is started, the print is immediately pause and the user is prompted to select a filament. The plugin then sends a
M863 E1
to enable tool remapping then for every tool aM863 P# L#
is sent to map every tool to the chosen one. When the print ends, the plugin sends aM863 E0
to disable tool remapping.This does mean you will always get the prompt modal for every print, but you can click skip and have it preserve the default behavior. In a future release, I will try to read ahead and figure out if only one tool was used in the profile.