Hi Gary -
`cmd.fetch()` runs asynchronously by default, meaning `cmd.show()` might
execute before the structure is actually loaded. Try amending to:
cmd.fetch(mol_id, async=0)
Does that make a difference?
Cheers,
Jared
On March 29, 2018 at 2:18:29 PM, Gary Oberbrunner (ga...@darkstarsystems.com)
wrote:
I'm running pymol "headless" in a script. After initializing pymol and calling
finish_loading(), I do this:
cmd.fetch(mol_id)
cmd.show('spheres','all')
session = cmd.get_session()
... but my session object only includes one object, the cObjectMolecule. I'm
looking for it to include the graphics objects as well if that's possible. Any
hints?
--
Gary Oberbrunner -- CEO -- Dark Star Systems, Inc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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