[chimerax-users] setting up mousemode - translate z - set pivot

Elaine Meng meng at cgl.ucsf.edu
Mon Dec 21 09:37:28 PST 2020


Hi Helge,
There is no .ini file, so you would set up your mouse modes in the startup commands, like you said.  You can put all the mousemode assignment commands into a command file (.cxc), however, and then just include an "open" of that file in the startup commands.

All mousemode functions are listed in this table:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/ui.html#functions>

There is a "pivot" but as you saw, it works only for atoms.  For nonatomic models like maps, you might have to make your own function key assignment to "cofr sel" or something like that, where sel is the selected model.  See "functionkey"
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/ui.html#functionkey>

The "zoom" mode is similar to Z-translate, except that the camera moves, not the structure.  To actually Z-translate a model relative to other models, I believe you would have to select it or part of it, assign "translate selected models" to "wheel" and scroll the wheel (or logical equivalent if you are using a touchpad).  I have a mac laptop with touchpad and with trackpad gestures turned OFF in the ChimeraX Preferences (Trackpad tab), and for me, 2-finger scrolling on the touchpad works for this mode.

It is better not to use shift explicitly in your rotation and translation assignments, because the addition of shift to the assignment can then be used to switch from rotation to translation and vice versa, as described in the table of mousemode functions.  That is probably the reason for the unexpected rotation/translation behavior you mentioned.

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Dec 21, 2020, at 8:29 AM, Helge Paternoga <Helge.Paternoga at chemie.uni-hamburg.de> wrote:
> 
> Dear ChimeraX users,
> 
> I am currently using the homeoffice time to finally get into ChimeraX, coming from Chimera.
> 
> I just discovered "mousemode" and am trying to set up the controls to my liking. My goal is to make the fitting process of models and volumes into cryo-EM maps as smooth as possible.
> 
> Currently, I use the following commands which are entered in the "execute these commands at startup" option in the settings => Is this the best way to permanently change the key-mapping? I could not find an .ini file, yet.
> 
> 
> 	mousemode shift leftMode 'translate selected models'
> 	mousemode shift middleMode 'rotate selected models'
> 	mousemode rightMode zoom
> 	mousemode shift wheel contour
> 	mousemode setting contour speed 0.1
> 
> My idea is to have the following set up:
> 
> left mouse - turn all models (default)
> middle mouse - translate xy (default)
> right mouse - zoom
> 
> shift left mouse - turn selected model
> shift middle mouse - translate xy selected model
> shift right mouse - translate z selected model
> 
> scroll wheel - contour volume
> 
> control right mouse - set pivot on selected model
> 
> Turning and translating the models works well, also while holding shift for the selected model.
> 
> As a side note, 'translate selected models' rotates the selected models in place whereas 'rotate selected models' translates in xy, is this intentional?
> 
> => I would like to move the selected model in the z direction with the right mouse button while holding shift, is there an option for "translate z" ?
> 
> => I am often re-setting the pivot point, therefore I would like to bind this function ("Set Pivot") to the mouse as well, does this option exist? I tried "pivot" but it did not work for cryo-EM volumes.
> 
> Many thanks for reading,
> 
> Helge




More information about the ChimeraX-users mailing list