From: Warren D. <wa...@de...> - 2005-11-05 18:28:55
|
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 =3D [] cmd.iterate(sele-str, "stored.list.append(color)") print stored.list Cheers, Warren -- Warren L. DeLano, Ph.D. =20 Principal Scientist . DeLano Scientific LLC =20 . 400 Oyster Point Blvd., Suite 213 =20 . South San Francisco, CA 94080 USA =20 . Biz:(650)-872-0942 Tech:(650)-872-0834 =20 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:wa...@de... =20 =20 > -----Original Message----- > From: pym...@li...=20 > [mailto:pym...@li...] On Behalf Of=20 > Indraneel Majumdar > Sent: Saturday, November 05, 2005 10:21 AM > To: pym...@li... > Cc: Warren DeLano > Subject: [PyMOL] get color of atom ? >=20 > Hi, >=20 > How can I find out the color of an atom? > Also, how should I call it from a python script? >=20 > (Is there a function that will let me access the C variables?) >=20 > get <color>, /x///1/CA >=20 > does not work. (where <color> is any item in settings.py that=20 > has anything to do with color) >=20 > TIA, > Indraneel >=20 > -- > http://prodata.swmed.edu >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App=20 > 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 > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 >=20 >=20 >=20 |