[PyMOL] viewport report?

2007-11-05 Thread Thomas Stout
Hi All -- I have a rather old session file that I would like to replicate in a new session file. Essentially, I want to carry the settings over in order to make a new figure using a different structure. One of the settings that I'm having trouble with is the size of the viewport: anyone know

Re: [PyMOL] viewport report?

2007-11-05 Thread Andreas Forster
Hey Thomas, try this: width,height = cmd.get_session()['main'][0:2] print width, height or print (cmd.get_session()['main'][0:2]) Andreas Thomas Stout wrote: Hi All -- I have a rather old session file that I would like to replicate in a new session file. Essentially, I want to carry

Re: [PyMOL] viewport report?

2007-11-05 Thread Thomas Stout
Fantastic! That is EXACTLY what I needed - many thanks -Tom -Original Message- From: Andreas Forster [mailto:docandr...@gmail.com] Sent: Monday, November 05, 2007 9:46 AM To: Thomas Stout Cc: PyMOL-users@lists.sourceforge.net Subject: Re: [PyMOL] viewport report? Hey Thomas, try