From: Norman Geist (norman.geist_at_uni-greifswald.de)
Date: Tue Feb 23 2016 - 01:35:16 CST

 

You could register a function to trace the vmd animation frame to compute and apply a fitting zoom value through the trajectory similar to http://www.ks.uiuc.edu/Research/vmd/script_library/scripts/sscache/. Regarding DrawMolecule.C a fitting scale value can be computed as 1.5/max(size(x),size(y),size(z)). You might want to compute the size of your molecule by only using heavy atoms to achieve some kind of smoothing.

 

Good luck

 

Norman Geist

 

Von: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] Im Auftrag von M K
Gesendet: Dienstag, 23. Februar 2016 00:54
An: John Stone <johns_at_ks.uiuc.edu>; M K <mahyar.karimi20_at_gmail.com>; vmd-l_at_ks.uiuc.edu
Betreff: Re: vmd-l: Define the percentage of zoom

 

Hi,

Thanks for the reply.

Yes, VMD does not do that. What I meant was by the user; for example, an unintentional scrolling the wheel button of the mouse. I want to fix the zoom level/percentage throughout the trajectory.

I think you are right: "an orthographic projection so that size/distance relationships are preserved".

So, in the orthographic output image, the same atom with VDW style will always look the same size, for instance.

How can I apply this setting?

Bests

Mah

 

On Tue, Feb 23, 2016 at 2:51 AM, John Stone <johns_at_ks.uiuc.edu <mailto:johns_at_ks.uiuc.edu> > wrote:

Hi,
  It's not entirely clear what you're talking about when you refer to
"unwanted zooming". VMD doesn't do any time-varying zooming
by itself as a trajectory plays. Perhaps what you're after is
to use an orthographic projection so that size/distance relationships
are preserved throughout a trajectory movie regardless how close
parts of the structure are to the camera?

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu <mailto:vmd_at_ks.uiuc.edu>

On Mon, Feb 22, 2016 at 10:21:36PM +1100, M K wrote:
> Hi all,
> I want to export some images from vmd through the trajectory.
> How can I define the percentage of zoom, so that the molecule in all the
> images is of the same size (and neutralize any unwanted zooming, for
> example).
> Thanks

--
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 <tel:217-244-3349> 
http://www.ks.uiuc.edu/Research/vmd/