Indraneel, iterate sele-name, print color
Will dump out the color name. If you need this in a Python variable, the process is a bit more convoluted: from pymol import cmd, stored stored.list = [] cmd.iterate(sele-str, "stored.list.append(color)") print stored.list Cheers, Warren -- Warren L. DeLano, Ph.D. Principal Scientist . DeLano Scientific LLC . 400 Oyster Point Blvd., Suite 213 . South San Francisco, CA 94080 USA . Biz:(650)-872-0942 Tech:(650)-872-0834 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:war...@delsci.com > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > Indraneel Majumdar > Sent: Saturday, November 05, 2005 10:21 AM > To: pymol-users@lists.sourceforge.net > Cc: Warren DeLano > Subject: [PyMOL] get color of atom ? > > Hi, > > How can I find out the color of an atom? > Also, how should I call it from a python script? > > (Is there a function that will let me access the C variables?) > > get <color>, /x///1/CA > > does not work. (where <color> is any item in settings.py that > has anything to do with color) > > TIA, > Indraneel > > -- > http://prodata.swmed.edu > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App > Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > > >