VMD-L Mailing List
From: Maxim Belkin (mbelkin_at_ks.uiuc.edu)
Date: Wed Dec 17 2014 - 01:30:56 CST
- Next message: Norman Geist: "AW: VMD crashing when loading prmtop files"
- Previous message: Xinqiang Ding: "Re: get the coordinate of the mouse arrow"
- In reply to: Xinqiang Ding: "get the coordinate of the mouse arrow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi Xinqiang,
- Your mouse pointer is at the surface of your screen (obviously).
- This surface is a plane perpendicular to your view direction.
- Your view direction is [molinfo top get rotate_matrix]
- The center of your view is [molinfo top get center] or, more pedantically: [molinfo top get center_matrix]
If you play a little bit with these and the scaling (molinfo top get scale_matrix), you can get what you want. However, instead you can draw simple objects (e.g. spheres) at various location and figure out necessary coordinates manually.
Maxim
> On Dec 16, 2014, at 5:11 PM, Xinqiang Ding <xqding_at_umich.edu> wrote:
>
> Dear all,
>
> How can we get the coordinate of the mouse arrow in VMD? I know that if there is an atom, we can select that atom, then see their coordinates using label. But how can I get the coordinate of the point which the mouse arrow is pointing to and there is no atom there?
>
> Thank a lot,
> Xinqiang
>
- Next message: Norman Geist: "AW: VMD crashing when loading prmtop files"
- Previous message: Xinqiang Ding: "Re: get the coordinate of the mouse arrow"
- In reply to: Xinqiang Ding: "get the coordinate of the mouse arrow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]