Re: [PyMOL] Label using API

2012-05-30 Thread Thomas Holder
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

[PyMOL] Label using API

2012-05-30 Thread Rituparna Sengupta
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")