In recent builds, you don't need to specify both dimensions for the ray
command -- just give it height or width and it will compute the other
based on the current aspect ratio.
Regardless, to get the current window, here is one way:
Warren L. DeLano, Ph.D. =20
. DeLano Scientific LLC =20
. 400 Oyster Point Blvd., Suite 213 =20
. South San Francisco, CA 94080 USA =20
. Biz:(650)-872-0942 Tech:(650)-872-0834 =20
. Fax:(650)-872-0273 Cell:(650)-346-1154
. mailto:warren@... =20
> -----Original Message-----
> From: pymol-users-admin@...=20
> [mailto:pymol-users-admin@...] On Behalf Of=20
> David A. Horita
> Sent: Tuesday, January 03, 2006 2:39 PM
> To: pymol-users@...
> Subject: [PyMOL] Ray, png
> On the subject of larger image sizes, I had a question a=20
> while back; I'd like to know if it's been addressed or anyone=20
> has a quick(er) workaround- Basically, is there in inverse to=20
> the viewport command? i.e., if I manually resize the Pymol=20
> window to fit around the molecule I'm displaying, how can I=20
> get the relative dimensions of the new window? These=20
> dimensions are needed for the Ray command to keep proper=20
> perspective. What I've done in the past is save a small=20
> image of what's displayed in the window, used a graphics=20
> program to determine the x & y dimensions, and then used=20
> these to generate a high-resolution ray traced image with the=20
> same x/y ratio.
> I figure I'm missing something.
> David A. Horita, Ph.D.
> Department of Biochemistry
> Wake Forest University School of Medicine Winston-Salem, NC 27157-1016
> Tel: 336 713-4194
> Fax: 336 716-7671
> email: dhorita@...
> web: http://www1.wfubmc.edu/biochem/faculty/Horita.htm=20