> This is awesome.  It looks like this has been a valid setting 
> for a *long* time, but I've never seen it.  I look at a lot 
> of MCSS-type structures, and I have some really painful 
> scripts that get the bonds right once the structure is loaded 
> in PyMOL.  Now, I can just stamp the CONECT records at the 
> end of the file and load things up in connect_mode=1 world 
> and everything works.  Speaking of which, I made a little 
> bash shell script to launch PyMOL this way:
> 
> pymol -d "cmd.set('connect_mode',1)" $@
> 
> It took me a couple of tries to get that right.  The 
> documentation for command-line options says
> 
>    -d <string> Run pymol command string upon startup.
> 
> so I first tried
> 
> pymol -d "set connect_mode,1" $@
> 
> but that doesn't work.  Is this a documentation typo?  I 
> thought a PyMOL command string was anything you could type at 
> the PyMOL command prompt.

Michael,

The issue here is that spaces in the command used to cause trouble in
the launch process.  This has now been fixed in the current
pymol.com.template, but for now substitute a percent sign for spaces in
-d command arguments:

pymol -d "set%connect_mode,1" $@

Cheers,
Warren


--
Warren L. DeLano, Ph.D.                     
Principal Scientist

. DeLano Scientific LLC  
. 400 Oyster Point Blvd., Suite 213           
. South San Francisco, CA 94080 USA   
. Biz:(650)-872-0942  Tech:(650)-872-0834     
. Fax:(650)-872-0273  Cell:(650)-346-1154
. mailto:war...@delsci.com      
 

Reply via email to