CuraEngine icon indicating copy to clipboard operation
CuraEngine copied to clipboard

CuraEngine from command line fails to accept default_value from non-leaf config json nodes

Open richfelker opened this issue 1 year ago • 2 comments

Running CuraEngine with the fdmprinter.def.json file from Cura repo is expected to work. However, it errors out with

Trying to retrieve setting with no value given: roofing_layer_count

despite the setting being present in the config json. The root cause seems to be the addition of child config nodes; without them (or with them moved out of it), fetching the value works.

richfelker avatar Jan 30 '24 18:01 richfelker

I encountered a similar problem with my command-line CuraEngine app. Could you clarify what you mean by 'writing non-leaf'?

pepek1910 avatar Dec 10 '24 11:12 pepek1910

By convention, CuraEngine only ever reads leaf settings (ie: settings without children). This is by design. Non-leaf settings can be overridden by more specific ("child") settings.

fieldOfView avatar Dec 10 '24 12:12 fieldOfView