From: John Stone (
Date: Mon Jul 09 2001 - 10:53:28 CDT

Dear Niklas,
  Off the top of my head, one way to do this is to make an atom
selection to select all of the carbons, and a selection for everything
else, color the carbons by ColorID, set to the color you like, color the
rest of the atoms by Name, and use that same method on each of the molecules
you've loaded.

To select all of the carbons you could use something like this (Perl
regular expression syntax):
   name "C.*"

To select the non-carbons you could use:
   not name "C.*"

Let us know if you need more help with this, there are probably many
other ways of doing it, that one just came to mind quickly..

  John Stone

On Mon, Jul 09, 2001 at 11:09:32AM +0200, wrote:
> Dear all,
> I'm new to VMD and get stuck with the coloring syntax:
> I'd like to color molecules (eg when several relared proteins are loaded) so
> that they differ in carbon color (but so that the heteroatoms O,N,P etc
> retain their original colour). Any suggestions?
> Thanks,
> Niklas
> -----
> Niklas Blomberg
> Structural Chemistry Laboratory
> AstraZeneca R&D Mölndal
> 431 83 Mölndal,Sweden
> +46 31 776 17 34

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:                 Phone: 217-244-3349              
  WWW:      Fax: 217-244-6078