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
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
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"