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 ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net