From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Apr 25 2002 - 14:02:30 CDT

Dear Tran,
  Yes, it should be relatively easy for you to write a "ColorResID"
script that takes a resid list, a color, and a rep index or a
representation type and create a new VMD rep with the selected
characteristics. All you'd really be doing is automating the
process you described in the text below with a simple script.
Let us know if you need help with your script.

  John Stone
  vmd_at_ks.uiuc.edu

On Wed, Apr 24, 2002 at 09:28:57AM +1000, Tran Trung Tran wrote:
>
> Sorry, I didn't specify my question clearly. What I want to find out is
> whether there is a SIMPLE way to color by colorID a particular residue
> or group of residues, residue 10 or residue (2, 5, 11) for example.
>
> The way that I am doing it now is to select Main menu, Graphics, Atom
> Name Lists, Keyword(resid), select the value or list of values, create
> new. Select Image control, coloring method(ColorID), enter the colorID
> number, apply.
>
> What I am hoping and trying to write is a script called ColorResID,
> which takes as argument the resID list and the colorID
> e.g) ColorResID 2 5 11 colorId 10
>
> Tran Trung Tran
>
>
> > -----Original Message-----
> > From: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] On
> Behalf
> > Of Don Havelberg
> > Sent: Tuesday, 23 April 2002 5:02 PM
> > To: Tran Trung Tran
> > Cc: vmd-l_at_ks.uiuc.edu
> > Subject: Re: color by resid
> >
> > > I am a new user of VMD and I would like to ask a simple question,
> how do
> > > you color by residue ID ?
> >
> > go to the main menu, select grahics, change coloring method to resid!

-- 
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