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