From: John Stone (
Date: Wed Apr 03 2013 - 15:52:20 CDT

  There is an undocumented way to do this, currently by
specifying an environment variable. As I recall there are some
corner cases that this undocumented mechanism may not handle correctly, but
you can certainly go ahead and give it a try. You can prevent VMD from
doing a resetview for the newly loaded molecule by setting an environment
variable "VMDNODISRUPTHACK", either before running VMD, or within VMD itself
while its running. In VMD you can set it like this:

To unset, just do:

Try that and let me know if you find it useful or not. It has been a long
time since I looked at that code, so I don't recall what issues it does
or doesn't have. If it is useful enough as-is, I could consider adding
a GUI control for it if there are no unexpected problems with it.

  John Stone

On Mon, Apr 01, 2013 at 03:38:11AM +0000, Crosskey, Mark William wrote:
> Hi,
> I apologize if this is a dumb question, but I spent a good deal of time
> searching and reading through the manual and didn't find anything. Does
> anyone know of a way to disable the "display resetview" command that
> triggers on loading a new molecule? I have a series of .xyz files with a
> differing number of atoms, and a script that disables the current file and
> loads the next one, but the view resets each time a new molecule is
> loaded.
> -Mark

NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801           Phone: 217-244-3349