From: sunyeping (
Date: Thu May 26 2016 - 11:08:23 CDT

Dear all, I am trying to show the simulation time on a MD movie and I find a script that probably does this job in the mail list (written by Peter C. Lai): ------------------------ proc enabletrace {} {    global vmd_frame;    trace variable vmd_frame([molinfo top]) w drawcounter  }  proc disabletrace {} {    global vmd_frame;    trace vdelete vmd_frame([molinfo top]) w drawcounter  }  proc drawcounter { name element op } {    global vmd_frame;    draw delete all    # puts "callback!"    draw color white    set psperframe 4    set psoffset 0    set time [format "%d ps" [expr ($vmd_frame([molinfo top]) * $psperframe) + $psoffset]]    draw text {70 40 80 } "$time"  } ------------------------- But I don't know how to use it. I sourced it in the VMD Console, the time was shown; After that I made the movie, and the time wasn't shown yet. Could someone help me with this? Best regards.