RE: [PyMOL] Accessing PyMol's commands from outside (or without viewer)

2003-10-08 Thread Warren L. DeLano
> Two more questions: > Does the 'pymol -qc' takes command line variables (os.argv in python)? > For example, the first line of my script would be: > cmd.do('load %s' %os.argv[1]) That's not possible. In order to get this behavior (for now) you need to treat PyMOL as a module (see below). > Seco

Re: [PyMOL] Accessing PyMol's commands from outside (or without viewer)

2003-10-08 Thread Shu-Hsien Sheu
Dear Dr.DeLano, Thanks! That really helps! Two more questions: Does the 'pymol -qc' takes command line variables (os.argv in python)? For example, the first line of my script would be: cmd.do('load %s' %os.argv[1]) Second question might be off a little bit. Is it possible to wrap PyMol as a mod

RE: [PyMOL] Accessing PyMol's commands from outside (or without viewer)

2003-10-08 Thread Warren L. DeLano
Shu-hsien Sure, instead of cmd.select, use cmd.do("select ligand, resn XYZ") cmd.do("select protein, ! ligand ") etc. ./pymol -qc select_box.py Is the command line mode of PyMOL. "pymol -qc" can be used like "python" in most cases. Cheers, Warren -- mailto:war...@delanoscientific.com Warren