From: Eric Peterson (eric_at_caltech.edu)
Date: Wed Jan 10 2007 - 17:19:39 CST

Ah yes, I didn't think of getting the rotation matrix from the molecules
themselves. Some utilities to manipulate the camera with Tcl and so forth
would be really useful, I look forward to seeing those in VMD!

Thanks,
Eric

On 1/10/07 10:55 AM, "John Stone" <johns_at_ks.uiuc.edu> wrote:

>
> Hi,
> If you want the view direction vector, you can get this with
> (in current versions of VMD, things will change in the future
> as I begin enabling camera manipulation features that are currently
> experimental):
>
> If a molecule is loaded, you can get this with:
> set eye_vector [vectrans \
> [measure inverse [lindex [molinfo top get rotate_matrix] 0]] {0 0 -1} \
> ]
>
> Cheers,
> John Stone
>
> On Wed, Jan 10, 2007 at 10:23:29AM -0800, Eric Peterson wrote:
>> Does someone know a method to find out what the normal axis is to the
>> current "window" the user is looking though at the molecules rendered by
>> VMD? I would have thought the "display" tcl command could return this
>> information but I don't see anything in it that tells you what the relative
>> rotation of the current scene is to the xyz axes.
>>
>> Eric
>>