From: <lie...@vu...> - 2013-06-26 09:14:48
|
On Wednesday 26 June 2013 08:52:39 Jordan Willis wrote: > 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 > > 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)? This .pml sequence works for me: stored.a = 5 python import sys print sys.argv print stored.a stored.a = 10 python end print stored.a Cheers, -- Lieven Buts, Postdoctoral Fellow Structural Biology Brussels, Vrije Universiteit Brussel Department of Structural Biology, VIB |