Stuart,

I tried this in a script and at the command line and both worked 
flawlessly.  Without access to your script, this could be hard to 
debug--maybe it's a typo?

Here was my test script:

cmd.pseudoatom("temp", pos=[0,0,0], name="a")
cmd.pseudoatom("temp", pos=[0,0,5], name="b")
cmd.bond("temp////a", "temp////b")

What version of PyMOL do you use?

-- Jason

> [PyMOL] Bond command not functioning in script
> From: Stuart Ballard <srball...@wi...> - 2009-09-21 22:52
> 
> Attachments: Message as HTML     
> Hello all, Warren,
> 
> 
> I have a script which creates two pseudoatoms and a bond object between
> them, but the bond step consistently fails. However, the two pseudoatoms can
> be bound in the console after the script halts with the exact same command
> which fails in the script:
> 
> cmd.bond("temp0////A0","temp0////B0")
> 
> Alternatively, cmd.do("bond temp0////A0, temp0////B0") fails just the same.
> 
> The following works perfectly:
> PyMOL>python
> 1:cmd.pseudoatom("temp",pos[0,0,0],name="A")
> 2:cmd.pseudoatom("temp",pos[0,0,5],name="B")
> 3:cmd.bond("temp////A","temp////B")
> PyMOL>python end
> 
> So can anyone tell me why the *exact *same thing in a script halts after 2?
> 
> 
> Thanks,
> Stuart Ballard
> Dept. of Biochemistry
> University of Wisconsin-Madison 


-- Jason

-- 
Jason Vertrees, PhD
(e) jason.vertr...@gmail.com

http://www.pymol.org/     -- PyMOL
http://www.pymolwiki.org/ -- PyMOLWiki

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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