From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Mon Oct 12 2009 - 19:05:13 CDT

On Mon, 2009-10-12 at 18:58 -0400, Christine Horejs wrote:
> Hi everybody,
>
>
> does anyone know, if it is possible to color every second residue in
> another color independently of the residue type? So, let's say every
> second residue blue, and the other ones red? Does this work in VMD?

yes. there are several ways to do it.
one would be:

set sel1 [atomselect top "residue % 2 == 0"]
set sel2 [atomselect top "residue % 2 == 1"]

$sel1 set beta 0.0
$sel2 set beta 1.0

and then change the coloring scheme to Beta.

cheers,
   axel.

>
>
> Thank you all for your help,
>
>
> Christine

-- 
Dr. Axel Kohlmeyer  akohlmey_at_gmail.com 
Institute for Computational Molecular Science
College of Science and Technology
Temple University, Philadelphia PA, USA.