From: Axel Kohlmeyer (
Date: Wed Jun 05 2013 - 03:14:02 CDT

On Wed, Jun 5, 2013 at 9:12 AM, amit kunte <> wrote:
> Hi
> I have been trying for some time to dynamically change the color of
> atoms of my granular simulation each timestep.
> To this end, I am attempting to change the environment variable
> LAMMPSREMAPFIELDS and the tcl command is as follows:
> global env
> set env(LAMMPSREMAPFIELDS) {vx=type}
> Error:can't read "env(LAMMPSREMAPFIELDS){vx=type}": no such variable
> Type of the atoms changes every frame and it should be reflected as a change
> in the color in the VMD animation. As of now I am left with the same color
> of atoms as was in the first frame.
> Please tell me a way to make VMD reflect such changes during a trajectory.

just enter the command in correct Tcl syntax and it will work. the
error message tells you that you didn't do it correctly, probably due
to missing spaces.


> Best Regards
> Amit

Dr. Axel Kohlmeyer
International Centre for Theoretical Physics, Trieste. Italy.