
Hi Annie, Sure, you could just select them all with command: select #0:230,260 #1:232,262 You can also use commands like the following without bothering to select first, e.g.: color magenta #0:230,260 #1:232,262 color byhet #0:230,260 #1:232,262 Also what I like to do sometimes is just make an alias for a set of residues, e.g. commands: alias myres #0:230,260 #1:232,262 show myres color magenta myres color byhet myres Command-line atom specification: <https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/frameatom_spec.html> alias command: <https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/alias.html> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Dec 14, 2021, at 2:19 PM, Woodbrey Anne via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:
Hi, Is there a way to select residues from 2 different models using a single line of command?
For example, I want to select residues 230 and 260 of Model 0 and residues 232 and 262 of Model 1. I then want to display the side chains, color magenta, then color by heteroatom. This is what my current (annoying) workflow is: select #0:230,260 Actions à Color à Magenta Actions à Color à By heteroatom select #1:232,262 Actions à Color à Magenta Actions à Color à By heteroatom I know I can do the following instead: disp #0:230,260 color magenta #0:230,260 color byhet #0:230,260 Repeat for #1:232,262 …but it doesn’t really save any time.
I want to select all 4 residues at once without having to ctrl + shift + click on them all. Please tell me there’s a way!
Thank you, Annie