1
$\begingroup$

Is there a way to register custom user properties for example a filepath the user can set under User Preferences > File?

Even better would be the possiblity to register a whole new tab in the user preference menu but that is not necessary if it would be complicating my effort.

$\endgroup$
1
$\begingroup$

The filepath properties are stored in bpy.types.UserPreferencesFilePaths, which does not support custom properties (only ID types and Bones do).

Even if it was possible, you couldn't make a property show still - addons can't overrule default layout scripts.

You can use AddonPreferences however, as long as the properties are not supposed to be stored in every individual .blend you work with. AddonPreferences show up in the User Preferences > Addons tab, below the addon info (the addon entry needs to be expanded).

$\endgroup$
  • $\begingroup$ It's even better if they are not stored within the blend file. I want it to be installation wide, not portable (the artist's name and the default export path) $\endgroup$ – WorldSEnder Aug 19 '14 at 16:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.