Hi Chandan - Back in the lab today. I took a look at the code I sent and
realized that one can’t simply pass a tuple to cmd.color(), as it only accepts
named colors, so you have to use cmd.set_color().
So here (below) is a modified, fleshed-out version of what I sent yesterday,
with the
Hi Chandan,
in Incentive PyMOL 1.6 you can use the spectrum command to color by chain (will
be enumerated) or by residue number. http://pymolwiki.org/index.php/Spectrum
In open-source PyMOL, you could use the spectrumany script to color by residue
number:
Hi Chandan -
It seems like you're being limited by the 26 numbered colors in the util.cbc
function. You could create your own randomized list of evenly-spaced colors,
something like the following (untested, but should be approximately
usable--sorry, I'm away from my computer today):
from
On Thu, Mar 13, 2014 at 10:21 AM, Jordan Willis jwillis0...@gmail.comwrote:
I think...
What is happening is that the color command should take in a name like
color yellow, i. 1 or a CMYK color vector. When you are saying color
1 it is just starting at the first index of CMYK which is black.
I think...
What is happening is that the color command should take in a name like “color
yellow, i. 1 or a CMYK color vector. When you are saying “color 1” it is just
starting at the first index of CMYK which is black.
There is a command for your problem though. Just say util.color_chains()