Add a new user preference stored in the houdini.pref file.
The preference won’t appear in the Preferences user interface as this is meant for custom Python panels or scripts.
Returns True if the preference was added successfully. Return False if the preference already existed or if it didn’t start with “custom.”.
addPreference(name,value)
→ bool
name
The preference name must start with 'custom.'.
See also |