VMD-L Mailing List
From: lam nguyen (lamvn08_at_gmail.com)
Date: Mon Mar 05 2012 - 12:49:00 CST
- Next message: patrick wintrode: "Individual components of RMSD?"
- Previous message: Axel Kohlmeyer: "Re: information regarding tcl script for cell volume changing with each frame"
- Next in thread: John Stone: "Re: make movies with user-defined script"
- Reply: John Stone: "Re: make movies with user-defined script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear all,
I want to learn how to make movies with user-defined scripts. I started
with a simple script from the VMD tutorial. Here is the content:
proc moviecallback { args } {
puts "User-defined movie frame update callback frame:
$::MovieMaker::userframe
/ $::MovieMaker::numframes"
rotate y by 5
}
## Easy-to-use proc to enable the user-defined movie frame callback
proc enablemoviecallback { } {
trace add variable ::MovieMaker::userframe write moviecallback
}
## Easy-to-use proc to disable the user-defined movie frame callback
proc disablemoviecallback { } {
trace remove variable ::MovieMaker::userframe write moviecallback
}
In the Tk console:
source usermovie.tcl
enablemoviecallback
Then in the movie maker window I chose User defined procedure.
However I got an error message: Invalid input file expansion expression (no
']')
Can anyone please tell me what I did wrong here?
Thanks
Lam
- Next message: patrick wintrode: "Individual components of RMSD?"
- Previous message: Axel Kohlmeyer: "Re: information regarding tcl script for cell volume changing with each frame"
- Next in thread: John Stone: "Re: make movies with user-defined script"
- Reply: John Stone: "Re: make movies with user-defined script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]