[Chimera-users] Query colors?

Elaine Meng meng at cgl.ucsf.edu
Sun Mar 12 11:01:23 PDT 2023


Hi Lothar,
Interactively, you can look in the Model Panel and click the color square for that model, which will bring up the Color Editor containing the color.   Or, if you select part of a model and look in the Selection Inspector molecule attributes, it will also show that color well.
<https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/modelpanel.html>
<https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/inspection.html>

Programmatically (if you need code somebody else would need to address that), it is the model attribute named "color"... but you can list them as R,G,B  in the Reply Log with command:

list models attribute color

<https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/listen.html#listmodels>

Also, the first 9 colors are listed in the description of the New Molecules preference "use new color for each model":
<https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/preferences.html#New%20Molecules>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Mar 12, 2023, at 8:17 AM, Esser, Lothar (NIH/NCI) [E] via Chimera-users <chimera-users at cgl.ucsf.edu> wrote:
> 
> Hi, 
> 
>    in my current project I am reading about 50  pdb files. Chimera does a good job at assigning pleasant colors automatically and I would like to get access to the chosen colors to write 2dlabels with the same color. 
> How do I get access to the molecular (ribbon color) ? It's probably trivial but well, I somehow could not figure this out. 
> Thanks, 
> Lothar 
> 
> Dr. Lothar Esser
> National Institutes of Health
> 37 Convent Dr. Rm2122B
> Bethesda, MD 20892




More information about the Chimera-users mailing list