Hi Subha,
This is out of my area, since I don’t know python. (We always recommend sending questions to the chimera-users list, CC’d here, since you are more likely to get a good answer by asking multiple people!)
I can only say that as far as I know if it works in the command line, then you should be able to use python to run the same command, as described in this page in the Chimera programmer’s guide:
<http://www.rbvi.ucsf.edu/chimera/docs/ProgrammersGuide/ >basicPrimer.html
Best,
Elaine
On Aug 19, 2016, at 1:57 PM, Subha Kalyaanamoorthy <kalyaana@ualberta.ca> wrote:
> Hi Elaine,
>
> Just another question,
>
> Is there anything I need to import for using setattr in a python script. I get an error when I use it as a part of script. But, it works fine when I type it on the command-line of Chimera gui. Not sure what I am missing.
>
> Thanks and Best Regards,
> Subha
>