Hi Hugo, unfortunately, "partial" loading of named selections is currently not supported. As a workaround, 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 On 05 Feb 2015, at 06:44, Hugo Botelho <hugobote...@gmail.com> wrote: > Dear all, > > I wish to merge multiple PyMOL *.pse sessions. Each file contains multiple > objects and named selections. The names of each object and selection are > unique. > > Is there a way to merge two pse files while preserving named selections? > > I followed the advice of a previous thread ( > https://sourceforge.net/p/pymol/mailman/message/28993953/ ) and tried the > following commands: > > load sessionA.pse > load sessionB.pse, partial=1 > > These commands indeed merge the two sessions but ALL named selections in > sessionB.pse are lost. > > Thank you, > Hugo -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ 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