Curious about this too. Seems @SamGoldFisher in
has a possibly reliable way.
As I'm still learning about the UM2+ Connect and still trying to ssh to it, I still don't have a straightforward to directly feed it gcode but I'm also curious about the most efficient and reliable way to go from Cura settings to CuraEngine for automation via CLI or programming APIs.
-
1
Recommended Posts
gr5 2,224
@ahoeben might know the answer. It sounds like you are using linux?
I think there is a whole chain of *.def.json files - kind of like "include" statements in C. You could write some code to do it but not sure if there is a way in cura to do it.
Link to post
Share on other sites
ahoeben 1,981
Short answer: no, there is not.
Longer answer: it is complicated, especially because settings can have global values, values per extruder, values per model, settings per group of models, etc.
You could have a look how https://github.com/5axes/CuraSettingsWriter collects the setting values.
Link to post
Share on other sites
amrahabibovic 1
Thanks for the answer.
What about the other way around? Is there a way to find quality profile by the name and read its settings? I've read Cura and CuraEngine docs and looked at the resources (https://github.com/Ultimaker/Cura/tree/master/resources/quality) but I'm not sure how to pair printer with its corresponding quality profile.
Is there a script or doc I can have a look at? My idea is to make my own quality files with all parameters I will pass to CuraEngine so I need to know which printer uses which cfg file in resources.
Edited by amrahabibovictypos
Link to post
Share on other sites