From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Feb 26 2015 - 14:13:24 CST

Hi,
  I'm not sure I fully understand what coordinates you're asking for, but
I'll try and give you a useful answer anyway.

VMD uses a sequence of transformation matrices to convert from the model
coordinate system (e.g. molecule coordinates) into the world, or camera
coordinate system, which follows the conventions used by the renderer
currently in use. The internal behavior of VMD is to assume an OpenGL
camera/world coordinate system, and all other renderers basically cope
with this by doing further coordinate transformations.

In any case, you can query the concatenated VMD transformation matrices
for scale, translation, rotation, etc and use these in your own scripts
for your own purposes. Look at the VMD save_state.tcl included with VMD,
and you'll see how VMD saves and restores the view with a saved state.

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Mon, Feb 23, 2015 at 10:42:16PM +0000, Nuno Sousa Cerqueira wrote:
> hello,
> Is it possible to get the coordinates of the frame when we use the camera
> navigation (mouse or keys).
> The idea was to create a VMD state with more than one protein so that
> the user could "travel" through the proteins and get some information
> about them. The problem is to known where the used is during the travel.
> As far as I understand, it is not trivial to obtain this sort of
> information directly.
> Any ideas how this could be done.
> Regards,
> Nuno
> --
> Nuno M. F. Sousa A. Cerqueira
> Chemistry Department
> Faculty of Sciences
> University of Porto
> Rua do Campo Alegre, s/n
> 4169-007 Porto
> Portugal
> Tel: +351 220402501
> Fax: +351 220 402 009
> email: [1]nscerque_at_fc.up.pt
> website: [2]http://www.fc.up.pt/pessoas/nscerque
>
> References
>
> Visible links
> 1. mailto:nscerque_at_fc.up.pt
> 2. http://www.fc.up.pt/pessoas/nscerque

-- 
NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/