From: Jose Borreguero (
Date: Tue Apr 10 2012 - 17:32:11 CDT

Dear VMD users,

I have the following little script that reads an AMBER dcd trajectory and
outputs a dcd trajectory formatted by VMD:

mol new type parm7
animate read dcd amber.dcd beg 0 end 9
animate write dcd vmd.dcd beg 0 end 9 waitfor all

The script works well when entering the commands one by one in the main vmd
window. However, if submitted as a script ( vmd -dispdev none -e
script.tcl ), it will only save the first frame, that is, vmd.dcd will
contain only the first frame.

I am new to scripting with VMD, I really don't know what I am missing
here. Any help is greatly appreciated.

Best regards,