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
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.