David, There isn't currently a programmatic way of doing this, but it wouldn't be too hard to make one. I'll put onto the todo list support for commands like: ray 1024; ray width=800; height=600; where the second axis is calculated.
Note that we're currently missing an API function for getting the viewer size (we'll need to add that), but you can rip it out of a session dictionary constructed on-the-fly (which is grossly inefficient, but it works): print cmd.get_session()['main'][0:2] [640,480] Cheers, Warren > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > David A. Horita > Sent: Monday, April 05, 2004 11:30 AM > To: pymol-users@lists.sourceforge.net > Subject: RE: [PyMOL] ray command > > Hi, > Regarding the use of the ray command, is there a way to > automatically set either the x or y value to maintain the > same aspect ratio as displayed in the window? For that > matter, how do you determine the number of x and y points > displayed (other than making a bitmap and loading that into > another program)? > > -David Horita > > > > > > Mohammed, > > > > ray width, height > > png filename.png > > > > for example, for a 5x4 figure at 300 dpi: > > > > ray 1600,1200 > > > > png hires.png > > (or use Save image... from the File menu after the ray command) > > > > Cheers, > > Warren > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials Free > Linux tutorial presented by Daniel Robbins, President and CEO > of GenToo technologies. Learn everything from fundamentals to > system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >