From: Jose Borreguero (borreguero_at_gmail.com)
Date: Tue Apr 10 2012 - 18:23:01 CDT

That centaintly ended my troubles. A million thanks, sir!

Jose

On Tue, Apr 10, 2012 at 7:16 PM, Axel Kohlmeyer <akohlmey_at_gmail.com> wrote:

> On Tue, Apr 10, 2012 at 6:32 PM, Jose Borreguero <borreguero_at_gmail.com>
> wrote:
> > 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 system.top 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.
>
> the "waitfor all" at the read.
>
> axel.
>
> > Any help is greatly appreciated.
> >
> > Best regards,
> > Jose
>
>
>
> --
> Dr. Axel Kohlmeyer
> akohlmey_at_gmail.com http://goo.gl/1wk0
>
> College of Science and Technology
> Temple University, Philadelphia PA, USA.
>