VMD-L Mailing List
From: sunyeping (sunyeping_at_aliyun.com)
Date: Thu May 26 2016 - 11:08:23 CDT
- Next message: John Stone: "Re: How to make the script that shows simulation time on a movie work"
- Previous message: Liviu Zarbo: "Re: vmd install on ubuntu 15.04 -- no display"
- Next in thread: John Stone: "Re: How to make the script that shows simulation time on a movie work"
- Reply: John Stone: "Re: How to make the script that shows simulation time on a movie work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: John Stone: "Re: How to make the script that shows simulation time on a movie work"
- Previous message: Liviu Zarbo: "Re: vmd install on ubuntu 15.04 -- no display"
- Next in thread: John Stone: "Re: How to make the script that shows simulation time on a movie work"
- Reply: John Stone: "Re: How to make the script that shows simulation time on a movie work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]