Re: [PyMOL] command-line and python scripts

2003-03-28 Thread Markus Meier
Dear Kristian, Thank you for your quick answer concerning pymol and python scripts. You answered questions 1-3, indeed. Generator functions are described at http://www.python.org/doc/2.2.2/whatsnew/node5.html and require python 2.2. Questions 4 and 6 I can now answer myself: 4) Can I tempora

Re: [PyMOL] command-line and python scripts

2003-03-26 Thread Kristian Rother
Dear Markus, > 1) How can I supply arguments to a python script, > when I invoke it from > the pymol command line? Write the python script like def bla(arg1,arg2): any.python.commands(arg1,arg2) return from pymol import cmd cmd.extend('blacommand',bla) Now you can call your function '