This Cura plugin simply adds a GUI to allow you to add layer-focused post-processing scripts directly from Cura's print preview.
This plugin causes a new button to appear when the Preview tab of Cura is shown with a sliced model. This button allows a script to be added at the currently-displayed layer.
Buttons will also appear for post-processing scripts that activate at specific layers in the model. Left-clicking these buttons will activate the corresponding layer (on the Preview tab only). Right-clicking will bring up the script settings. Center-clicking will remove the script.
Finally, when saving gcode to a file or sending it to a printer, the plugin will display a rough estimate of when each post-processing script's changes will take effect. This can be useful, for instance, in determining when a print will pause.
And that's about it. Not earth-shattering by any means, but it makes my life easier.
After installation, this plugin can be used by:
- Slicing a model in Cura
- Displaying the Preview tab
- Use the layer slider to find the layer where you need post-processing to be done
- Click the PostProcessingGui button near the lower-right corner of the Cura window
- Configure the post-processing script as normal
- Print!
New post-processing scripts can be added to the plugin by simply creating a corresponding .json file in "json" folder and defining the following entries:
-
script_key - the "key" of the post-processing script This can be found as the "key" value of the associated script, which can be found by examining the script itself
-
layer_number_setting - the name of the script setting that defines the layer the post-processing script acts on This setting name can be found by examining the script itself
-
(optional) critical_settings - a list of critical settings and the values they should be set to in order to be valid
The following .json file contents adds the "Pause at Height" post-processing script.
Note that the settings require the "Pause at Height" script to be configured to pause at a layer number rather than height.
{
"script_key": "PauseAtHeight",
"layer_number_setting": "pause_layer",
"critical_settings":
{
"pause_at": "layer_no"
}
}