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


but I can't change it

some help please! :D


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
  • 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
    Jun 10 '15 at 14:17
  • $\begingroup$ Updated in 2.8x find under context.preferences.view.pie_menu_radius $\endgroup$
    – batFINGER
    Dec 21 '19 at 19:33

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.