VMD-L Mailing List
From: Leonardo Trabuco (ltrabuco_at_ks.uiuc.edu)
Date: Mon Oct 12 2009 - 18:56:31 CDT
- Next message: Mengjuei Hsieh: "Re: VMD 1.8.7 CUDA on Mac OS X 10.6.1"
- Previous message: Axel Kohlmeyer: "Re: colour residues"
- In reply to: Eric H. Lee: "Re: colour residues"
- Next in thread: Axel Kohlmeyer: "Re: colour residues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Mengjuei Hsieh: "Re: VMD 1.8.7 CUDA on Mac OS X 10.6.1"
- Previous message: Axel Kohlmeyer: "Re: colour residues"
- In reply to: Eric H. Lee: "Re: colour residues"
- Next in thread: Axel Kohlmeyer: "Re: colour residues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]