Tom, label all, color
will display the numeric color identifiers which can be used in place of color names. You can also use "iterate" to fetch them back out as a list: stored.list = [] iterate all, stored.list.append(color) print stored.list Cheers, Warren -- DeLano Scientific LLC Subscriber Support Services mailto:supp...@delsci.com -----Original Message----- From: Thomas Stout [mailto:tst...@exelixis.com] Sent: Tuesday, November 11, 2008 3:35 PM To: pymol-users@lists.sourceforge.net; matthew.frank...@imclone.com Subject: Re: [PyMOL] another odd PyMOL question.... So, a follow up question becomes: is there a way to report what color something is? :) -Tom -----Original Message----- From: matthew.frank...@imclone.com [mailto:matthew.frank...@imclone.com] Sent: Tuesday, November 11, 2008 1:52 PM To: Thomas Stout Cc: pymol-users@lists.sourceforge.net Subject: Re: [PyMOL] another odd PyMOL question.... "Thomas Stout" <tst...@exelixis.com> wrote on 11/11/2008 04:46:38 PM: > > Hi again everyone -- > > I have another odd PyMOL question: does anyone know if it is possible > to make selections based on what color certain atoms are? > I need to do some wholesale re-coloring of a series of complicated > figures and it would be extremely useful if I could just say something like: > > "color red, (everything that is currently blue)" > > Thanks, > Tom > How about: > color red, yourmolecule and (color blue) Works for me. Of course, you have to know the color name for the color you're looking at - maybe there's a way of getting the RGB values for an atom? - Matt -- Matthew Franklin , Ph.D. Senior Scientist, ImClone Systems 180 Varick Street, 6th floor New York, NY 10014 phone:(917)606-4116 fax:(212)645-2054 Confidentiality Note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named on the e-mail. If the reader of this e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system. Thank you. This email (including any attachments) may contain material that is confidential and privileged and is for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. Exelixis, Inc. reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ PyMOL-users mailing list PyMOL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pymol-users