The Chimera session saving code is in the SimpleSession Python module

chimera/share/SimpleSession

which has a saveSession(filename) function.  The written session files are Python code.  To put that into an HDF5 file as a string you probably would write it to a temporary file then read that file and put it into your HDF5.  Restoring the session is done by running that Python code within Chimera using the Python execfile() function.

Tom

On Apr 10, 2017, at 3:38 PM, Dougherty, Matthew T <matthewd@bcm.edu> wrote:

I was interested in writing/reading sessions as hdf datasets. 

Can you direct me into the code  that does the IO?

Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
=================================================
=================================================
_______________________________________________
Chimera-dev mailing list
Chimera-dev@cgl.ucsf.edu
http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev