Nice!

You could just put the ##num_residues directly in your color gold command and do away with the sel/~sel.

--Eric

On Aug 29, 2023, at 10:32 AM, Oliver Clarke via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

Wonderful, thanks Eric!

Using it in this set of startup commands, which I find handy to get a “fast mode” for quickly inspecting map/model fit (with the “cootmode” alias. Switching off surface caps in particular seems to make a big difference to performance. “Symclip" adjusts clip planes symmetrically around the center of rotation. “Cofron" locks the center of rotation symmetrically between the clip planes, and shows the crosshairs, which I find helpful for precise navigation, while “cofroff" switches off the crosshairs.

camera ortho
cofr centerofview
alias cofron cofr centerofview showpivot true
alias cofroff cofr centerofview showpivot false
alias symclip cofr centerofview; clip near -$1 far $1 position cofr
alias cootmode surface cap false; lighting flat; graphics silhouettes false; style stick; ~rib; sel ##num_residues; color sel gold; color byhet ; size stickradius 0.07; transparency 50; symclip 10; color ##~num_residues cornflower blue; ~sel

Cheers
Oli
On Aug 29, 2023, at 1:23 PM, Eric Pettersen <pett@cgl.ucsf.edu> wrote:

Hi Oli,
A test of a non-existent attribute is always "false" in ChimeraX, and volume/surface models do not have a num_residues attribute.  What you can do is use just ##num_residues (does the num_residues attribute exist?) for atomic models and ##~num_residues (...not exist...) for non-atomic models.

--Eric

On Aug 29, 2023, at 9:48 AM, Oliver Clarke via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

Thanks Eric - just tested and it is definitely faster! Surprisingly, ##num_residues=0 does not work for selecting volume/surface models - should it?

Cheers
Oli

On Aug 29, 2023, at 12:40 PM, Eric Pettersen <pett@cgl.ucsf.edu> wrote:

##num_residues>0 

_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/


_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/