Opened 6 years ago
Last modified 6 years ago
#2666 assigned enhancement
Allow bond rotation mouse mode to move large size
Reported by: | Owned by: | Tom Goddard | |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Structure Editing | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
From: "Lewandowski, Jozef"
Subject: [chimerax-users] Rotate bond move large/small option in VR
Date: December 6, 2019 at 9:21:25 AM PST
To: "chimerax-users@…" <chimerax-users@…>
Hi,
Is there a way to change the option from the default “move small” to “move large” of the Bond rotation tool in VR?
Ideally, it would be great if I could switch between these options on the fly with some combination of buttons on the controllers.
If nothing like that is implemented is there a way I could change the “move” default for the Bond rotation tool in VR using the command line?
Thanks,
Józef
The main thing needed here is a command ("mousemode option"?) to set options on mouse modes. The message below shows how the bond rotation mode can be modified to rotate the side closer to where the button was clicked.
From: Tom Goddard
Subject: Re: [chimerax-users] Rotate bond move large/small option in VR
Date: December 6, 2019 at 3:11:15 PM PST
To: "Lewandowski, Jozef"
Cc: "chimerax-users@…" <chimerax-users@…>
Hi Józef,
The code change to move the large size actually isn't too obvious, I had to do some spelunking to find it, but you would add a line to the code changing
to
Keep the indentation the same since that is important in Python. Then the bond rotation mouse mode will always move the large side.
to
A drawback of these Python hacks is that when you update your ChimeraX it won't have your code modifications. To make it easier to add this modification I've put it into our code but it is disabled by default since mostly people rotate protein side-chain bonds and they don't want the large side (ie whole protein chain) rotating. To enable it I put a flag in the vr_press() routine move_closer_side that you can change from False to True, simplifying your code edit.