From: Thomas H. <sp...@us...> - 2011-12-20 10:49:40
|
On 12/19/2011 11:20 PM, Jason Vertrees wrote: > Cleaned up a little, this would make a nice simple addition to the > PyMOLWiki script library. I can do it, on the basis of spectrumany. Cheers, Thomas > Cheers, > > -- Jason > > On Mon, Dec 19, 2011 at 2:13 AM, Takanori Nakane > <t.n...@ma...> wrote: >> Hi Jacob, >> >> The following command will make blue to purple spectrum. >> (please type in one line) >> >> for i in range(1 + cmd.count_states()): cmd.set("cartoon_color", >> "0x%02x00ff" % (i * 255 / (2 + cmd.count_states())), "all", state=i) >> >> You can change spectrum by changing >> "0x%02x00ff" % (i * 255 / (2 + cmd.count_states())) >> part. >> >> >> Best regards, >> >> Takanori Nakane -- Thomas Holder MPI for Developmental Biology Spemannstr. 35 D-72076 Tübingen |