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 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 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 how to "report" what it is currently set to within a 
> session file?
> "viewport" is not listed in the "All Settings" window.....
> 
> Thanks!
> -Tom
> 


-- 
          >>  Andreas Förster  <<
          Imperial College London
https://wasatch.biochem.utah.edu/~andreas


This email (including any attachments) may contain material
that is confidential and privileged and is for the sole use of
the intended recipient. Any review, reliance or distribution by
others or forwarding without express permission is strictly
prohibited. If you are not the intended recipient, please
contact the sender and delete all copies.


Exelixis, Inc. reserves the right, to the extent and under
circumstances permitted by applicable law, to retain, monitor
and intercept e-mail messages to and from its systems.


Reply via email to