Multicolor print - manual change of filament

In order to ease the change of filament on a single-extruder multi-color print, would it be possible to use this as “Change filament g-code” in the Creality Print slicer ?

PAUSE
QUIT_MATERIAL

My objective is to pause the print, and autiomatically do the retract of the current filemant - so that I only have to insert the new filament and press “extrude” on the display…

Note: The slicer states, that I have 26 color changes for the model in question (5 colors) - otherwise the solution would have been to get a Hi 3D Combo …

That doesn’t work because the printer will stop heating the hotend as part of the PAUSE command, then when you resume it will return to the print and start the QUIT_MATERIAL function and immediately try to print. You can copy the entire PAUSE macro and rename it to PAUSE_MATERIAL and then put a QUIT_MATERIAL command in that macro one line above it turning off the hotend

I had to move it further - to after where the head is parked:

G1 X{x_park} Y{y_park} F12000
QUIT_MATERIAL