pymol-users-ad...@lists.sourceforge.net wrote on 01/03/2006 05:32:38 PM:

> Hi,
> On the subject of larger image sizes, I had a question a while back;
> I'd like to know if it's been addressed or anyone has a quick(er)
workaround-
> Basically, is there in inverse to the viewport command?  i.e., if I
> manually resize the Pymol window to fit around the molecule I'm
> displaying, how can I get the relative dimensions of the new window?
> These dimensions are needed for the Ray command to keep proper
> perspective.  What I've done in the past is save a small image of
> what's displayed in the window, used a graphics program to determine
> the x & y dimensions, and then used these to generate a high-
> resolution ray traced image with the same x/y ratio.
> I figure I'm missing something.
>
> Regards,
>

Hi David -

I usually just write a temporary png image to get the viewport dimensions,
i.e.

PyMOL>png junk.png
 ScenePNG: wrote 640x480 pixel image to file "junk.png".

As long as you haven't just executed a raytracing, the png dimensions are
the viewport dimensions.

- Matt

--
Matthew Franklin                     phone:(917)606-4116
Senior Scientist, ImClone Systems      fax:(212)645-2054
180 Varick Street, 6th floor
New York, NY 10014


Confidentiality Note:  This e-mail, and any attachment to it, contains
privileged and confidential information intended only for the use of the
individual(s) or entity named on the e-mail.  If the reader of this e-mail
is not the intended recipient, or the employee or agent responsible for
delivering it to the intended recipient, you are hereby notified that
reading it is strictly prohibited.  If you have received this e-mail in
error, please immediately return it to the sender and delete it from your
system.  Thank you.


Reply via email to