Hi Gary & Jared,

PyMOL session files do not contain any graphics geometry. Export as COLLADA or 
VRML are the best options.

The cmd.fetch() function is not asynchronous by default, only the fetch command 
is. This is controlled by the quiet=0 argument which is passed to all commands.

Cheers,
  Thomas


> On Mar 29, 2018, at 9:54 PM, Gary Oberbrunner <ga...@darkstarsystems.com> 
> wrote:
> 
> Thanks for the idea Jared, but no, still nothing but atoms.
> 
> On Thu, Mar 29, 2018 at 3:31 PM, Jared Sampson <jared.samp...@columbia.edu> 
> wrote:
> 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.

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, 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

Reply via email to