Re: [PyMOL] Access viewport size
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-6821Fax: 613-533-2497 robert.campb...@queensu.cahttp://pldserver1.biochem.queensu.ca/~rlc -- Nokia and ATT 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
Re: [PyMOL] Access viewport size
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. Cheers, -- Jason On Wed, Sep 22, 2010 at 2:06 PM, Mark A Saper sa...@umich.edu wrote: The output of the get_view command does not save the size of the viewport. Thus if you want to recreate an image for ray tracing so it will have the same size and scale, one also needs to save the viewport dimensions. Is there some way to access this information? The viewport command only sets the viewport. Mark _ Mark A. Saper, Ph.D. Associate Professor of Biological Chemistry University of Michigan Biophysics, 3040 Chemistry Building 930 N University Ave Ann Arbor MI 48109-1055 U.S.A. sa...@umich.edu phone (734) 764-3353 fax (734) 764-3323 http://www.biochem.med.umich.edu/?q=saper http://www.strucbio.umich.edu/ -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ 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 -- Jason Vertrees, PhD PyMOL Product Manager Schrodinger, LLC (e) jason.vertr...@schrodinger.com (o) +1 (603) 374-7120 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ 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