Longshot, but ..

I'm looking at a structure under two different sets of conditions, so I have two PyMOL windows open. I'm constantly get_view and set_view[*] to synchronize the two windows. Is there some way to set things up so that I can drag things around in one window and have the scene in the other window automatically follow along?

Thanks,

-michael

[*] actually, I'm a bit lazier than that .. I now have this run via my .pymolrc:

VIEW_FILENAME = '/tmp/currentview.txt'
def gv():
    '''write current view to a file (default /tmp/currentview.txt)'''
    # '...%s...'%VIEW_FILENAME doesn't end up as gv.__doc__
    f =  file(VIEW_FILENAME,'w')
    f.write(str(cmd.get_view()))
    f.close()
def sv():
    '''read current view from a file (default /tmp/currentview.txt)'''
    # '...%s...'%VIEW_FILENAME doesn't end up as sv.__doc__
    f = file(VIEW_FILENAME)
    cmd.set_view(f.read())
    f.close()
cmd.extend('gv',gv)
cmd.extend('sv',sv)


so I can type 'gv' in one window and 'sv' in the other.

--
www.umich.edu/~mlerner |                        _  |Michael Lerner
This isn't a democracy;| ASCII ribbon campaign ( ) |   Michigan
it's a cheer-ocracy.   |  - against HTML email  X  |  Biophysics
-Torrence,  Bring It On|                       / \ | mler...@umich

Reply via email to