From: Axel Kohlmeyer (
Date: Mon Nov 28 2005 - 14:56:54 CST

On Sun, 27 Nov 2005, ed mendez wrote:

EM> Dear guru.

dear ed,

EM> I need to update the colors in a VMD movie.
EM> I know how to select atom types, but these are not
EM> recomputed on each frame! (even by selecting the
EM> option
EM> in "Graphcal Representation/trayectory/update
EM> selection ..."
EM> I have gone crazy changing all king of parameters.
EM> I also tried scripting ...

well, you can try one of the strategies suggested at:

or something similar, by e.g. first reading the coordinates and ignoring
the fact, that the atom types change and then in a second step re-read
the file from a script and store the atom type in the user field.

now you could create a number of visualizations with selections of the
type 'user = xxx' for each atom type and also a dynamics bonds selection
with the color set to grey and then pat yourself on the back ;-).

EM> (each frame should get recomputed atom types).
EM> If this is not possible, how can I read these from
EM> different files, and then
EM> visualize in a simulation one at a time?.

EM> I would like to do this for files containing hundreds
EM> of atoms, and hundreds of frames,
EM> so doing this manually is not an option :(

have a look at.

feel free to ask, if you have any additional questions.


EM> Your help would be appreciated.
EM> Eduardo Mendez
EM> The Sailor from the Prairies
EM> U of S. Chemistry
EM> __________________________________
EM> Yahoo! Mail - PC Magazine Editors' Choice 2005

Axel Kohlmeyer
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
If you make something idiot-proof, the universe creates a better idiot.