Hi Ritu,
when using the API, you need to quote the text label twice:
cmd.label("chain d and name C1", "'whatever'")
It's a string in a string :)
Cheers,
Thomas
Rituparna Sengupta wrote, On 05/30/12 22:42:
> Hi,
>
> Can anyone tell me how to label something using the API. I'm having
> troub
Hi,
Can anyone tell me how to label something using the API. I'm having trouble
with it and the API usage is not listed in PyMol wiki.
I use
label chain d, "whatever"
from the command line and it works fine. But I want to use it in a script. I
tried using
cmd.label("chain d", "whatever")