Thanks to the Team for the new command, very useful.
I did modify a script for Ultimaker CURA.
Unzip the script file and save it in the folder “C:\Users\USER\AppData\Roaming\cura\4.9\scripts” (change the path to reflect the name of your “USER” on your computer).
Start or Restart CURA.
To use the script in CURA, go to “Extensions” then “Post Processing” then “Add a script”. Select the script “Filament Change SnapMaker 2” in the list.
You can now enter the layer number at which the change(s) will occur (at the beginning of the layer).
You can enter multiple layers changes with a coma (,). For example you can set “5,10,15,30” to have 4 filament changes.
This is just a cleaning of unnecessary parameters in the original Ultimaker script, but I will add the possibility to change temperature in the next release, to print Multimaterials as it was my first use case and done it manualy.
Edit : Rewrite it all now that i have the possibility to attach files.