VMD-L Mailing List
From: Jeffrey Tseng (pocket17_at_gmail.com)
Date: Mon Mar 13 2006 - 14:12:09 CST
- Next message: Axel Kohlmeyer: "Re: VMD script"
- Previous message: Jérôme Hénin: "Re: Convert an ascii matrix to an image"
- In reply to: John Stone: "Re: changing the color of subset of representation"
- Next in thread: John Stone: "Re: changing the color of subset of representation"
- Reply: John Stone: "Re: changing the color of subset of representation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi, John
Thanks for your quick responding and helpful comments.
Yes, you are right. If I split the selection into parts. The
reprensentation is not what I want.
I would like to try the other way that you suggest, which is to use per-atom
data fields such as "user" or "occupancy".
Could you please use my example I gave in the previous email to show how to
color different selections of the same repesentation?
Also, I found that in KS website, there is one example. It looks like a
perfect example.
Here is link.
http://www.ks.uiuc.edu/Research/vmd/allversions/repimages/surf.jpg
If you know how to generate it, I wonder if the vmd script is available.
Thanks a lot,
-Jeffrey
On 3/13/06, John Stone <johns_at_ks.uiuc.edu> wrote:
>
>
> Hi,
> A representation can only have one coloring method active at a time.
> If you use the ColorID coloring method, then that eliminates the
> possibility
> of having two colors at once for a given selection. You could either
> split
> your atom selection into two parts and make one representation for each,
> coloring them differently (which may not work very well for your Surf
> representation), or you can assign values to one of the per-atom
> data fields such as "user", "beta", "occupancy", etc, and then color
> by that data field rather than by ColorID. Let me know if you need
> more help with this.
>
> John Stone
> vmd_at_ks.uiuc.edu
>
> On Sun, Mar 12, 2006 at 02:52:15PM -0600, Jeffrey Tseng wrote:
> > Hi,
> >
> > Is it possible to change the color of subset of the selection ?
> >
> > Here is an example:
> > ###########################
> > mol representation SURF 1.4
> > atomselect macro myselect {
> > resname ASN and resid 273 and name OD1
> > or resname ASP and resid 269 and name OD2
> > or resname ASP and resid 269 and name OD1
> > or resname ASP and resid 269 and name CG
> > or resname HIS and resid 268 and name NE2
> > or resname LEU and resid 210 and name CD1
> > or resname LEU and resid 210 and name CG
> > or resname LEU and resid 210 and name CB
> > or resname LEU and resid 210 and name N
> > }
> >
> > mol selection {myselect}
> > mol color colorID 12
> > mol addrep top
> >
> > ########################################
> >
> > Now myselect will be colored "green" surface.
> >
> >
> > Here is the subselction
> >
> > mol selection {
> > resname ASN and resid 273 and name OD1
> > or resname ASP and resid 269 and name OD2
> > or resname ASP and resid 269 and name OD1
> > or resname ASP and resid 269 and name CG
> > }
> >
> >
> > I would like to make the subselection colored "red" and the surface
> > representation can not be changed.
> >
> > Is there any good way to make this task happen ?
> >
> >
> > Thanks in advance.
> >
> > -Jeffrey
>
> --
> 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
>
- Next message: Axel Kohlmeyer: "Re: VMD script"
- Previous message: Jérôme Hénin: "Re: Convert an ascii matrix to an image"
- In reply to: John Stone: "Re: changing the color of subset of representation"
- Next in thread: John Stone: "Re: changing the color of subset of representation"
- Reply: John Stone: "Re: changing the color of subset of representation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]