From: Axel Kohlmeyer (axel.kohlmeyer_at_theochem.ruhr-uni-bochum.de)
Date: Sun Apr 17 2005 - 03:07:11 CDT

On Sat, 16 Apr 2005, Kiniu Wong wrote:

dear kiniu,

KW> Hi there,
KW>
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>
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:
http://www.theochem.rub.de/~axel.kohlmeyer/cpmd-vmd/part3.html#chap5

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

regards,
        axel.

KW>
KW> Thanks a lot,
KW> Kiniu
KW>
KW>

-- 
=======================================================================
Dr. Axel Kohlmeyer   e-mail: axel.kohlmeyer_at_theochem.ruhr-uni-bochum.de
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  http://www.theochem.ruhr-uni-bochum.de/~axel.kohlmeyer/
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.