After you generate G-code in Snapmaker Luban, you can see the number of layers in the 3D printing section.
Please find the layers in which you want to change the colour.
- Open the G-code file in VS code or other text editor
You can find use
Ctrl + F to find the layers, in which you want to switch the filament, and then insert
M600 before the layers start.
For example, if you want to switch the filament in layer 11, you need to insert
M600 when layer 10 ends.