Mouse modes

From PyMOLWiki
Revision as of 08:25, 30 April 2009 by Inchoate (talk | contribs)
Jump to: navigation, search

Add the code below to the file and run it from within pymol.

After you run it, click on the mouse mode indicator to cycle it at least one time in order to get the new bindings.

Replace ['three_button_viewing'] by ['three_button_editing'] to edit the 3-Button Editing mode.

from pymol.controlling import ring_dict,mode_name_dict,mode_dict

# redefine the three_button_viewing mode
mode_name_dict['three_button_viewing'] = 'My 3-But View'
mode_dict['three_button_viewing'] =  [ ('l','none','rota'),
                      ('double_right','none', 'pk1'),
                      ('single_right','none', 'pkat'),