Re: [PyMOL] apply spectrum per MODEL in PyMOL script

2013-11-13 Thread Jerome BENOIT
Hello, On 13/11/13 07:27, Jordan Willis wrote: > rather :) > > colors = [‘red’,’blue’] > fetch 1nmr, discrete=1, async=0 > as ribbon > set all_states > for model,color in zip(range(cmd.count_states()),colors): > cmd.color(str(color), "state %s" % x) I guess something is wrong on my side becaus

Re: [PyMOL] apply spectrum per MODEL in PyMOL script

2013-11-12 Thread Jordan Willis
rather :) colors = [‘red’,’blue’] fetch 1nmr, discrete=1, async=0 as ribbon set all_states for model,color in zip(range(cmd.count_states()),colors): cmd.color(str(color), "state %s" % x) On Nov 13, 2013, at 12:23 AM, Jordan Willis wrote: > zip it like this > > colors = [‘red’,’blue’] > fetch

Re: [PyMOL] apply spectrum per MODEL in PyMOL script

2013-11-12 Thread Jordan Willis
zip it like this colors = [‘red’,’blue’] fetch 1nmr, discrete=1, async=0 as ribbon set all_states for color, model in zip(range(cmd.count_states()),colors): cmd.color(str(color), "state %s" % x) On Nov 12, 2013, at 11:32 PM, Jerome BENOIT wrote: > Hello Jason, > > thanks for your hint. > > Un

Re: [PyMOL] apply spectrum per MODEL in PyMOL script

2013-11-12 Thread Jerome BENOIT
Hello Jason, thanks for your hint. Unfortunately, I can not produce what I want: Let assume that I read a local PDB file with different MODELS and I would like to colour the first model in red, the senond in blue: what would be the MPL script coaamnd ? Thanks in advance, Jerome On 11/11/13 19:

Re: [PyMOL] apply spectrum per MODEL in PyMOL script

2013-11-11 Thread Jason Vertrees
Hi Jerome, fetch 1nmr, discrete=1, async=0 as ribbon set all_states for x in range(cmd.count_states()): cmd.color(str(x), "state %s" % x) You can substitute the spectrum command for the color command. Cheers, --- Jason On Sat, Nov 9, 2013 at 8:54 PM, Jerome BENOIT wrote: > Hello List, > > is

[PyMOL] apply spectrum per MODEL in PyMOL script

2013-11-09 Thread Jerome BENOIT
Hello List, is there a way in PML script to apply a specific spectrum to each MODEL (as define in PDB data file) ? Thanks in advance, Jerome -- November Webinars for C, C++, Fortran Developers Accelerate application p