Hi, On Wed, 22 Sep 2010 23:29:14 -0400 Jason Vertrees <jason.vertr...@schrodinger.com> wrote:
> Hi Mark, > > We used to be able to call this to get the viewport size. But, > somewhere along the line Warren removed this. I'll see if I can add > it back in, or find out why he removed it. As mentioned in this email: http://www.mail-archive.com/pymol-users@lists.sourceforge.net/msg05888.html this works for me: width,height = cmd.get_session()['main'][0:2] I note that a more recent e-mail: http://www.mail-archive.com/pymol-users@lists.sourceforge.net/msg07563.html suggests that it doesn't work. In the latter case, printing cmd.get_session().keys() showed the absence of the 'main' key. I couldn't say why it was absent then and present now (I build PyMOL for Linux from the SVN sources). Cheers, Rob -- Robert L. Campbell, Ph.D. Senior Research Associate/Adjunct Assistant Professor Botterell Hall Rm 644 Department of Biochemistry, Queen's University, Kingston, ON K7L 3N6 Canada Tel: 613-533-6821 Fax: 613-533-2497 <robert.campb...@queensu.ca> http://pldserver1.biochem.queensu.ca/~rlc ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ 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