[Chimera-users] Can mouse preferences by set to specific UCSF Chimera function (ex. "Undo Move" under Movement Mouse Mode) ?

Tom Goddard goddard at sonic.net
Wed Oct 30 11:43:52 PDT 2019


Hi Junha,

  You can do this with the Chimera Keyboard Shortcuts tool.

	https://www.cgl.ucsf.edu/chimera/current/docs/ContributedSoftware/accelerators/accelerators.html <https://www.cgl.ucsf.edu/chimera/current/docs/ContributedSoftware/accelerators/accelerators.html>

Following the instructions under Adding Keyboard Shortcuts I made a Python file to define an undo move shortcut, I've attached the file undomove.py.  Then I used menu Tools / General Controls / Keyboard Shortcuts, entered the path to this file under "Load shortcuts file" (press enter after pasting in the path), then clicked the "Enable keyboard shortcuts" checkbutton.  This made pressing the key "z" do undo move.  You could change "z" to other keys, even the space key " ".

  The above keyboard shortcut settings will be remembered so each time you start Chimera it will enable your shortcuts.  Of course you can add more shortcuts to run whatever commands you like by adding lines to the Python file.

	Tom




> On Oct 30, 2019, at 5:50 AM, Jun Ha Song <junhasong at berkeley.edu> wrote:
> 
> Dear RBVI,
> 
> My current project involves modifying market set to better-fit the density map, and I use "Undo Move" function of "Movement Mouse Mode" window all the time (at least 100 times every hour). Although the "Undo Move" is already a godsend for my current project, I have to confess that I find moving my mouse all the way to "Movement Mouse Mode" window, then clicking "Undo Move" little bit tiring (especially after looking for "Movement Mouse Mode" Window over 10,000 times, at least).
> 
> I have learned that there is also a way to use Undo Move via Toolbar, but the fact that I need to move my mouse from my model to click the Undo Move button remains the same.
> 
> I want to ask the following question : "Can Mouse button (ex. MMB), or a specific custom keyboard key (ex. Pause/Break), be assigned to activate a UCSF Chimera function that requires its button to be physically pressed?"
> 
> This is such a minor wish, as it would likely only benefit 1 person, I already feel guilty for asking this. That is why I want to know if mouse button can be assigned to actiavte UCSF Chimera function in general.
> 
> Best,
> Junha Song.
> <Mouse Preference and Undo Move Button on Movement Mouse Mode Window.png>_______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20191030/028a19e1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undomove.py
Type: text/x-python-script
Size: 312 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20191030/028a19e1/attachment.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20191030/028a19e1/attachment-0001.html>


More information about the Chimera-users mailing list