Re: [PyMOL] Color states as rainbow

2011-12-20 Thread Thomas Holder
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

Re: [PyMOL] Color states as rainbow

2011-12-20 Thread Thomas Holder
On 12/20/2011 11:49 AM, Thomas Holder wrote: 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. there it is: http://pymolwiki.org/index.php/Spectrum_states

Re: [PyMOL] Color states as rainbow

2011-12-19 Thread Thomas Holder
Hi Jacob, I fixed the color_obj script in the wiki, it had a bug. Btw. I like Tsjerk's suggestion best, using b-factors. Cheers, Thomas Jacob Keller wrote, On 12/19/11 03:38: Dear Pymol list, I have been trying to color the states in a morph by spectrum to try to show the motion in

Re: [PyMOL] Color states as rainbow

2011-12-19 Thread Thomas Holder
Jacob Keller wrote, On 12/19/11 19:04: Yes, now it works perfectly--thanks very much! Also, did you see some advantage of doing the b-factor idea over your script, or just a good parallel strategy? it's just a good parallel strategy. And is done with 2 lines instead of loading an extra

Re: [PyMOL] Color states as rainbow

2011-12-19 Thread Jacob Keller
Yes, now it works perfectly--thanks very much! Also, did you see some advantage of doing the b-factor idea over your script, or just a good parallel strategy? Jacob On Mon, Dec 19, 2011 at 2:41 AM, Thomas Holder spel...@users.sourceforge.net wrote: Hi Jacob, I fixed the color_obj script in

Re: [PyMOL] Color states as rainbow

2011-12-18 Thread Jason Vertrees
Hi Jacob, You cannot use the spectrum command across multiple states like that. Your next best bet is to try: set color, color_name, obj_name, state=X For example, set line_color, red, myProtein, state=1 set line_color, orange, myProtein, state=2 set line_color, yellow, myProtein, state=3 ...

Re: [PyMOL] Color states as rainbow

2011-12-18 Thread Tsjerk Wassenaar
Hey :) You could copy the state to the b-factor field: fetch 1nmr, async=1 split_states 1nmr for i in range(1,cmd.count_states()+1): cmd.alter(1nmr_%04d%i,b=%d%i) delete 1nmr spectrum b Cheers, Tsjerk On Mon, Dec 19, 2011 at 7:38 AM, Jason Vertrees jason.vertr...@schrodinger.com wrote: Hi

Re: [PyMOL] Color states as rainbow

2011-12-18 Thread Takanori Nakane
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 +