Re: [PyMOL] echo colour

2013-01-23 Thread Joel Tyndall
Thanks Thomas, seems to work. -Original Message- From: Thomas Holder [mailto:thomas.hol...@schrodinger.com] Sent: Wednesday, 23 January 2013 10:47 p.m. To: pymol-users@lists.sourceforge.net Subject: Re: [PyMOL] echo colour Hi Joel, the color is stored as a numeric atom property, you

Re: [PyMOL] echo colour

2013-01-23 Thread Thomas Holder
Hi Joel, the color is stored as a numeric atom property, you can use iterate to get it. PyMOL> iterate (first objX), print color If you need the name of the color, get the index to name mapping as a dictionary from PyMOL like this: PyMOL> stored.cn = dict((i,c) for (c,i) in cmd.get_color_indice

[PyMOL] echo colour

2013-01-22 Thread Joel Tyndall
Hi list, With the myriad of colours in Pymol, I tend to forget which shade of what I have used. Is there a way/command to print the colour I have used to colour object X? Cheers Joel _ Joel Tyndall, PhD Senior Lecturer in Medicinal Chemistry National School of