1
$\begingroup$

I was wondering if it would be possible to change Blender to left click selection mode via Python. The tooltip in 2.72 says the Datapath is UserPreferencesInput.select_mouse, but I am a bit lost on how to get there. Is it part of the keymap definition? If so, can it be changed via Python at all?

I am working on an add-on that changes quite a few hotkeys of Blender around in conjunction with Pie-Menus.

Any help here is greatly appreciated!

$\endgroup$
3
$\begingroup$

The full path to the current user preference is

bpy.context.user_preferences.inputs.select_mouse = 'LEFT'
$\endgroup$
  • $\begingroup$ fantastic! found it myself a minute ago, but in fact your answer even came before that! $\endgroup$ – aliasguru Nov 2 '14 at 20:30

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.