From: Axel Kohlmeyer (
Date: Sun Apr 17 2005 - 03:07:11 CDT

On Sat, 16 Apr 2005, Kiniu Wong wrote:

dear kiniu,

KW> Hi there,
KW> Just a quick question. How can I "draw" different things in
KW> different frames (which all frames are loaded to the same molecule
KW> ID)? For example, how to "draw text" that represents the real time of
KW> the frames?
KW> I've surfed through the mailing list archive and the manual,
KW> apparently we need to use the procedure "vmd_frame". But I really
KW> have no idea how to implement that. Could you provide me with a
KW> sample script, say to draw the real time of the trajectory for
KW> different frames?

you need to write a procedure that will delete and recreate the
graphical object and than add it to the vmd_frame hook, so it
will be run each time a new frame is shown. for a more detailed
description you may want to take a look at my VMD tutorial:

there should be some more examples in the VMD script library.


KW> Thanks a lot,
KW> Kiniu

Dr. Axel Kohlmeyer   e-mail:
Lehrstuhl fuer Theoretische Chemie          Phone: ++49 (0)234/32-26673
Ruhr-Universitaet Bochum - NC 03/53         Fax:   ++49 (0)234/32-14045
D-44780 Bochum
If you make something idiot-proof, the universe creates a better idiot.