Hello,

I'm looking to pass a .pml file, do some stuff, and then save it as a session. 
Pymol -c My.pml looks like a good option.  I'm trying to write hundreds of 
sessions each with different arguments. I was wondering if its possible to pass 
command line arguments that can then be seen by the python interpreter inside a 
.pml

So it would be like:

My.pml
<
python
argument1 = sys.argv[0] #except sys.argv doesn't work
#do something with argument
python end

do some stuff in the pml
save('somefile')
>


I'd also be willing to just write a pure python script and use the API provided 
I can still write session files and save them with ease. I don't know how to do 
that without passing it to Pymol first and using it's interpreter. 

While I'm at it, is it easy to pass objects, i.e. variable names, between the 
python enviroment and the pml enviroment inside a .pml script? Is cmd.extend 
the best option? Is there a way to go backwards (from the .pml to the python 
interpreter)?

Jordan






------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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

Reply via email to