2
$\begingroup$

I want to change the pie menu radius using python, after some search I can access to that propertie using:

bpy.types.UserPreferencesView.bl_rna.properties['pie_menu_radius'].

but I can't change it

some help please! :D

$\endgroup$

1 Answer 1

1
$\begingroup$

And similar can be done for all other items on the User-Preferences -> Interface tab. (Warning doesn't update the visible value on the UI until you move your mouse, or trigger ui redraw some other way)

import bpy
prefs = bpy.context.user_preferences
prefs.view.pie_menu_radius = 80
$\endgroup$
2
  • 2
    $\begingroup$ Note that this may not work in an addon unless you use some hack to delay the execution until a valid context is available to change the user preferences! $\endgroup$
    – CodeManX
    Commented Jun 10, 2015 at 14:17
  • $\begingroup$ Updated in 2.8x find under context.preferences.view.pie_menu_radius $\endgroup$
    – batFINGER
    Commented Dec 21, 2019 at 19:33

You must log in to answer this question.

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