From: Jason V. <jas...@gm...> - 2009-09-22 18:31:55
|
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 <srballard@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) Jas...@gm... http://www.pymol.org/ -- PyMOL http://www.pymolwiki.org/ -- PyMOLWiki |