Hello, I would like to merge two PyMOL session. I found the suggestion below, but would appreciate some details on how to use this. Thanks, Mike
you could use the following function to write out a script which recreates all current selections. from pymol import cmd @cmd.extend def dump_selections(filename): ''' DESCRIPTION Dump a script which recreates all current named selections ''' handle = open(filename, 'w') for name in cmd.get_names('selections'): for (model, index) in cmd.index(name): print >> handle, 'cmd.select("%s", "(%s`%d)", merge=1)' % ( name, model, index) Hope that helps. Cheers, Thomas ------------------------------------------------------------------------------ _______________________________________________ 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