From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Mar 21 2002 - 22:55:31 CST

Dear Zhanwu,
  Try adding the line "display update ui" before the call to myproc,
and see if that cures your problem. Let us know if that works for you.
If you're doing an atom selection in myproc, that might solve the problem
for you right there. If so, we can probably suggest a more efficient way
to do the same thing, but lets see if that quick fix does it for you for
the time being.

Thanks,
  John Stone
  vmd_at_ks.uiuc.edu

On Thu, Mar 21, 2002 at 09:39:39PM -0500, Liu, Zhanwu wrote:
> Dear VMD-L,
>
> I am writng a script to process frames of the dcd file one by one. When I
> do it
> manually, like this:
>
> animate goto 55
> myproc parameters
>
> It works very well.
> But when I wrote it in the script in such a way:
>
> for { set i 0 } { $i < 200 } { incr i 1 } {
>
> animate goto 55
> myproc parameters
> }
>
> It does not work. I guess the reason is myproc begin to execute before
> animate goto
> finished, could anybody give me some suggestion?
>
> Thanks
>
> Zhanwu

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349              
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078