From: Thomas H. <sp...@us...> - 2011-04-09 08:18:49
|
Jason Vertrees wrote, On 04/08/11 20:09: > Hi Matthias, > > There is no script that I'm aware of, but writing one should be rather > straightforward because of how the API is organized: > > commandName arg1, arg2, arg3 > > becomes > > cmd.commandName(arg1, arg2, arg3) I would use the cmd.keyword dictionary for the translation, I thinks not all commands have the exact same name in PyMOl API. Also pml scripts can contain python code which must not be translated. > The hardest part would be determining when to quote strings versus not > quoting numbers and variables. It should be save to just quote everything. Cheers, Thomas |