Re: [COOT] Hot keying CA trace <-> Bonds (color by chain) toggle
Thanks for the suggestions! Best, Pranav -- Pranav Shah Postdoctoral Research Fellow. Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK On Mon, Mar 14, 2022 at 7:00 PM Victor Tobiasson wrote: > > Well today I learned something new as well. I always hovered over the Display > Manager window menu. > > Thanks Paul! > > On Mon, 14 Mar 2022 at 19:55, Paul Emsley wrote: >> >> On 14/03/2022 16:18, Pranav Shah wrote: >> > I frequently find myself switching between CA trace and the Bonds >> > (colored by chain) modes. I do this by repeatedly clicking the >> > appropriate option from display manager. It would be massively >> > convenient on my fingers if I could hotkey the switching between these >> > two modes. Could you guide me on how I could set this up in coot >> > preferences? >> > >> >> As well as Victor's answer, you can change the display mode with >> >> Ctrl-Shift middle-mouse-scroll >> >> You might need to remember how many clicks you need. >> >> Paul. >> >> >> >> To unsubscribe from the COOT list, click the following link: >> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 >> >> This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing >> list hosted by www.jiscmail.ac.uk, terms & conditions are available at >> https://www.jiscmail.ac.uk/policyandsecurity/ > > > > > To unsubscribe from the COOT list, click the following link: > https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 To unsubscribe from the COOT list, click the following link: https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/
Re: [COOT] Hot keying CA trace <-> Bonds (color by chain) toggle
Well today I learned something new as well. I always hovered over the Display Manager window menu. Thanks Paul! On Mon, 14 Mar 2022 at 19:55, Paul Emsley wrote: > On 14/03/2022 16:18, Pranav Shah wrote: > > I frequently find myself switching between CA trace and the Bonds > > (colored by chain) modes. I do this by repeatedly clicking the > > appropriate option from display manager. It would be massively > > convenient on my fingers if I could hotkey the switching between these > > two modes. Could you guide me on how I could set this up in coot > > preferences? > > > > As well as Victor's answer, you can change the display mode with > > Ctrl-Shift middle-mouse-scroll > > You might need to remember how many clicks you need. > > Paul. > > > > To unsubscribe from the COOT list, click the following link: > https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 > > This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing > list hosted by www.jiscmail.ac.uk, terms & conditions are available at > https://www.jiscmail.ac.uk/policyandsecurity/ > To unsubscribe from the COOT list, click the following link: https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/
Re: [COOT] Hot keying CA trace <-> Bonds (color by chain) toggle
On 14/03/2022 16:18, Pranav Shah wrote: I frequently find myself switching between CA trace and the Bonds (colored by chain) modes. I do this by repeatedly clicking the appropriate option from display manager. It would be massively convenient on my fingers if I could hotkey the switching between these two modes. Could you guide me on how I could set this up in coot preferences? As well as Victor's answer, you can change the display mode with Ctrl-Shift middle-mouse-scroll You might need to remember how many clicks you need. Paul. To unsubscribe from the COOT list, click the following link: https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/
Re: [COOT] Hot keying CA trace <-> Bonds (color by chain) toggle
Hi Pranav, I regularly use the "graphics_to_ca_plus_ligands_representation(i)" and related "graphics_to..." commands for the scripting of representation switching. Depending on how much scripting you want to do you could either create a toolbutton with something like; graphics_to_ca_plus_ligands_representation(active_redidue[0]) Alternatively if you want to get a bit more fancy you could define a toggle function in your coot-preferences. Something like the dirty script below will bind shift+c to toggle ca representation on whatever model you interacted with last; CA_toggle = 0 def toggle_ca_rep(): CA_toggle = (CA_toggle+1)%2 if CA == 1: graphics_to_ca_plus_ligands_representation(active_residue()[0]) elif CA == 0: graphics_to_bonds_representation(active_residue()[0]) #graphics add_key_binding("Toggle_CA", "C", lambda: CA_toggle=toggle_ca_rep(CA_toggle)) Best, Victor On Mon, 14 Mar 2022 at 17:19, Pranav Shah wrote: > Hi Paul, > > I frequently find myself switching between CA trace and the Bonds > (colored by chain) modes. I do this by repeatedly clicking the > appropriate option from display manager. It would be massively > convenient on my fingers if I could hotkey the switching between these > two modes. Could you guide me on how I could set this up in coot > preferences? > > Best, > Pranav > -- > Pranav Shah > Postdoctoral Research Fellow. > > Division of Structural Biology, > Wellcome Trust Centre for Human Genetics, > University of Oxford, > Roosevelt Drive, Oxford OX3 7BN, > UK > > > > To unsubscribe from the COOT list, click the following link: > https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 > > This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing > list hosted by www.jiscmail.ac.uk, terms & conditions are available at > https://www.jiscmail.ac.uk/policyandsecurity/ > To unsubscribe from the COOT list, click the following link: https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT=1 This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/