Repository navigation
Replies: 2 comments 1 reply
|
There is not direct way to check if the Preference exists using FreeCAD API, probably the way is to call GetContents() on the group and iterate to find the desired name existence. |
0 replies
|
Is the group accessible via |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Asked otherwise, what is the difference between a
Preferenceinstance for an existing parameter and one from an non-existing parameter?I need to ensure (i.e. possibly change or set) some parameters to ensure that headless import always produce the same result, independently of use parameters. If a parameter was not set, I want my script to remove the parameter when finished but how can I detect this situation. I tried
p = Preference(..., value_type=bool, default=None)butp()returnsFalserather thanNone.All reactions