[Chimera-users] Coloring snapshots using time as attribute

Elaine Meng meng at cgl.ucsf.edu
Mon Nov 3 13:17:49 PST 2008

Hi Ibrahim,
Assigning/creating the attribute could probably be done in Python, but  
the way I would do it is to make an attribute assignment file in which  
the left column is the model number and the right is the time value.   
Reading in the file with the Define Attribute tool (or defattr  
command) creates the attribute with whatever name you give it, which  
will then appear in Render by Attribute for your coloring convenience.

Attribute assignment files are simple text files, format described here:

Example files are linked here:

Define Attribute:

Render by Attribute:

Another way to color by attribute value is with the command rangecolor:

I hope this helps,
Elaine C. Meng, Ph.D.                          meng at cgl.ucsf.edu
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

On Nov 3, 2008, at 12:49 PM, Ibrahim Moustafa wrote:

> Dear Chimera team,
>   I have several snapshots from simulation loaded as different  
> models. I wonder if there is a way to color them coded according to  
> time as an attribute, e.g. Red-white-blue for t0 -> t.
>   Thanks in advance,
>   Ibrahim

More information about the Chimera-users mailing list