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 Answer 1

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$
1
  • $\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$ Commented Aug 19, 2014 at 16:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .