My daughter recently asked me to print something for her in two entirely different types of filaments. To do so would require me to change almost all of the settings partway through the printing process. Here is how I did it with the post processing script plugin for Cura. This plugin allows you to add custom g-code commands at specific layers or heights of your print, which can override the default settings of your slicer.
To use the post processing script plugin, you need to have Cura installed on your computer. You can download it from https://ultimaker.com/software/ultimaker-cura. Once you have Cura open, load your model and slice it as usual. Then, go to the Extensions menu and select Post Processing > Modify G-Code. This will open a new window where you can add, edit, or delete scripts.
To add a new script, click on the Add a script button and choose one from the list. There are many scripts available, such as ChangeAtZ, PauseAtHeight, FilamentChange, etc. For this example, I will use the ChangeAtZ script, which lets you change any parameter at a given layer or height. After selecting the script, you will see a list of options that you can modify. For example, you can choose whether to trigger the script by layer or by height, what parameter to change, and what value to set it to. You can also add a comment to remind yourself what the script does.
For example, let’s say I want to change the temperature from 200°C to 220°C at layer 50 of my print. I would select the ChangeAtZ script and set the following options:
- Trigger: Layer No.
- Layer No.: 50
- Behavior: Keep value
- Change extruder 1 temp: True
- Extruder 1 temp: 220
- Comment: Increase temperature
This will insert a custom g-code command at layer 50 that will set the temperature of extruder 1 to 220°C and keep it until the end of the print. You can add multiple scripts if you want to change more than one parameter or change them multiple times during the print. You can also edit or delete scripts by clicking on the pencil or trash icons next to them.
Once you are done with adding scripts, click on Close and save your g-code file as usual. Then, transfer it to your printer and start printing. You should see your parameter changes take effect at the specified layers or heights of your print.
The post processing script plugin for Cura is a powerful tool that can help you fine-tune your prints and achieve better results. You can use it to experiment with different settings and see how they affect your print quality, speed, or appearance. You can also use it to create some interesting effects, such as changing colors, pausing for inserts, or adding text or logos. The possibilities are endless!