This is something I wanted to add to my PostProcessingPlugin Script as well so I looked at it a bit more.
In my case I wanted to retrieve retraction_amount and while I'm getting a value it is not returning the value for the latest slicing but what is set for the machine profile.
Note: I've tweaked the parameters so now I have a custom tab.
So I guess there are multiple settings for the same parameter and you have to grab the correct container stack to get what really is in use.
Recommended Posts
BoostedGcode 2
from UM.Application import Application
(I believe "machine_start_gcode" is the parameter you're looking for which I looked up by looking at Cura/resources/definitions/printrbot_simple.def.json)
then anywhere in your script you can get a property by calling:Application.getInstance().getGlobalContainerStack().getProperty("machine_start_gcode", "value")
Link to post
Share on other sites