UserPreference seems not to work because it is not an ID type object. ‘WindowManager’ works, as it is an ID object. However, it appears that properties of WindowManager do not persist in the .blend file.
If I add these properties to ‘Scene’ everything works fine. Problem is I now need to support multiple scenes, and it does not make sense to attach what is supposed to be a global property to a specific scene.
There has to be someplace in the .blend file where such properties are stored. Any ideas on the official way to do this?
Based on your first post looking at debug and verbose you could use something like this There is one enum prop connected to the scene that is used to set bpy.app.debug and bpy.app.debug_value. Only scene[0] is displayed in the panel.
Excuse the hodgepodge code made up of recent examples.