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$

1 Answer 1

3
$\begingroup$

The full path to the current user preference is

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

You must log in to answer this question.

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