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 <[email protected]> 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&A=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&A=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/