Re: [PyMOL] python for loop with pymol command usage

2007-07-04 Thread Robert Campbell
Hi Louis, * Clark, Louis [2007-07-04 12:01] wrote: > Dear user-group, > > I'm trying to learn how to use python commands inside pymol .pml > scripts. I seem to be missing some understanding about how the > interface works. Could somebody tell me how to fix this command below? > > > > PyM

Re: [PyMOL] python for loop with pymol command usage

2007-07-04 Thread gilleain torrance
Hmmm. With a little messing around, it seems that this works at the pymol prompt: for x in range(10): cmd.label("(name ca and resi %d)" % x, '"%s%s\" % (resi, resn)') The only difference is in the quoting. Double quotes inside single quotes. gilleain On 7/4/07, Clark, Louis wrote: Dear

[PyMOL] python for loop with pymol command usage

2007-07-04 Thread Clark, Louis
Dear user-group, I'm trying to learn how to use python commands inside pymol .pml scripts. I seem to be missing some understanding about how the interface works. Could somebody tell me how to fix this command below? PyMOL>for x in range(10): cmd.label("(name ca and resi %d)" % x, "%s%s"