
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: <http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/define...
Example files are linked here: <http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/define...
Define Attribute: <http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/define...
Render by Attribute: <http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/render/render.html#...
Another way to color by attribute value is with the command rangecolor: <http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/rangecolor.html> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. meng@cgl.ucsf.edu UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco http://www.cgl.ucsf.edu/home/meng/index.html 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