From: Leonardo Trabuco (ltrabuco_at_ks.uiuc.edu)
Date: Mon Oct 12 2009 - 18:56:31 CDT

To create an atom selection of all odd- or even-numbered residues, you
can do something like "(resid % 2) = 1" and "(resid % 2) = 0",
respectively.

Cheers,
Leo

On Mon, Oct 12, 2009 at 6:26 PM, Eric H. Lee <ericlee_at_ks.uiuc.edu> wrote:
> The brute force approach would be to make an atomselection by residue number
> (i.e. resid 1 3 5 7 9 .....), and then color by colorID.
>
> Eric
>
> On Oct 12, 2009, at 5:58 PM, 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?
> Thank you all for your help,
> Christine
>

-- 
Leonardo Trabuco, Ph.D. candidate
Theoretical and Computational Biophysics Group
University of Illinois at Urbana-Champaign