From: Oren Elrad (oelrad_at_gmail.com)
Date: Fri Aug 15 2008 - 11:33:02 CDT

Hi all,

I have a molecule (id 0) with a number of frames loaded into VMD for
Win32 v 1.8.6 and a procedure that I would like to be run every time
the frame changes. Following the example scipt* on the site, I tried
the following in tkl:

>Main< (VMD) 49 % proc do_stuff {} {puts "blah"}
>Main< (VMD) 51 % trace variable vmd_frame(0) w do_stuff

but this does not do anything when the frame changes. I've tried
various permutations of this syntax, as well as tracing
vmd_timestep(0)

*http://www.ks.uiuc.edu/Research/vmd/script_library/scripts/sscache/sscache.tcl

Any help would be appreciated.

Oren