Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
richfelker opened this issue Jan 30, 2024 · 2 comments

Comments

@richfelker
Copy link

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.

@pepek1910
Copy link

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

@fieldOfView
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants