[chimerax-users] feature request / suggestion

Elaine Meng meng at cgl.ucsf.edu
Tue Jul 9 11:06:30 PDT 2019


Hi Alexis,
At least without the spec part, you can do it with command (if you don’t mind losing any current selection):

sel ##display; hide sel models; show ~sel models; ~sel

If you really need the spec part, you could make an alias, e.g. in your startup commands (see Preferences)
<http://rbvi.ucsf.edu/chimerax/docs/user/preferences.html>
<http://rbvi.ucsf.edu/chimerax/docs/user/commands/alias.html>

alias toggle sel ##display; hide sel models; show ~sel models; ~sel
alias stoggle sel ##display; hide sel & $1 models; show ~sel & $1 models; ~sel

<http://rbvi.ucsf.edu/chimerax/docs/user/commands/alias.html>
<http://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes>

… then in ChimeraX you could use

toggle
— or if you want to use a specifier — 
stoggle <spec>

The <spec> could not be selection-based (e.g. “sel”), however.  I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Jul 9, 2019, at 9:37 AM, Alexis Rohou <a.rohou at gmail.com> wrote:
> 
> Hello,
> Apologies if this already exists, but I'd like to suggest a new option to the show/hide command:
> 
> show spec toggle
> 
> which would behave like the toggle option of volume (one of my favorite chimeraX features by far), but would work on atomic models. Within the spec, anything currently shown would become hidden, and vice versa.
> Cheers,
> Alexis





More information about the ChimeraX-users mailing list