The tricky thing is to switch it on at the right time when it's needed again. This has to be done before the swap gcode is executed. Otherwise you would have to wait for an eternity until your print is finished.
And you don't have to switch it off completely; just reduce temperature as much that it stops oozing.
I guess you can just look for the last tool change in your Gcode and manually ad a line to turn it off, If I'm not mistaken;
M104 S0 T0 (or M104 S0 T1 depending on which nozzle to turn off...)
Link to post
Share on other sites