From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue Dec 06 2005 - 16:40:15 CST

Hi,
  You can accomplish this in a couple different ways:

1) Set the color scale with your own custom colors and enable the update color
   every frame checkbox in the trajectory tab. See the tricolor_scale
   example procedure here:
   http://www.ks.uiuc.edu/Research/vmd/vmd-1.8.3/ug/node183.html#13650

or

2) Create four reps with atom selections that specify each of the 4 possible
   values you're interested in, use the color by ColorID method and select a
   different color for each of the four possibilities, then enable the
   "update selection every frame" checkbox in the trajectory tab.

  John Stone
  vmd_at_ks.uiuc.edu

On Tue, Dec 06, 2005 at 01:48:55PM -0500, Guanglei Cui wrote:
> Hi,
>
> I have a question about coloring selections over a trajectory of
> structures. I can do it with color scales by setting the "user"
> attribute, but I'd like to use discrete colors because there are only 4
> possible values. How would I do it if it can be done? Thanks.
>
> Regards,
>
> Guanglei
>
> BTW, is there a complete list of attribute of selection?

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078