From: Mustafa Tekpinar (
Date: Wed Jun 05 2019 - 10:55:24 CDT

I am using VMD for LINUXAMD64, version 1.9.3 and I am trying color a pdb
trajectory according to a user defined value.
I wrote the following script based on the previous suggestions.
mol new test.pdb waitfor all
set all [atomselect top all]

set n [molinfo top get numframes]
for { set i 0 } { $i < $n } { incr i } {
    $all frame $i
    $all set user $i
    $all update
Unfortunately, the script doesn't work. I was just wondering if anybody can
suggest me something to check or try.
PS: I am aware that the script colors according to timestep and it is
already installed in VMD. However, my aim is to add some other data into
the user field later.


Mustafa Tekpinar, PhD