6
$\begingroup$

I'm using a script to show the User Preferences dialog:

bpy.ops.screen.userpref_show('INVOKE_DEFAULT')

But it shows the preferences "input" tab, and I want it to show the "Ad-ons" tab. I tried using this:

bpy.types.UserPreferences.active_section

It didn't work. How can I do that?

$\endgroup$
5
$\begingroup$

You'd want to use

bpy.context.user_preferences.active_section = 'ADDONS'
| improve this answer | |
$\endgroup$

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.