VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Jul 27 2007 - 12:40:35 CDT
- Next message: zhenlong li: "Wrap only whole molecules"
- Previous message: John Stone: "Re: dssp in vmd (II)"
- In reply to: pascal.baillod_at_epfl.ch: "Re: frame number input in tcl and direct mol graph display update (II)"
- Next in thread: Axel Kohlmeyer: "Re: frame number input in tcl and direct mol graph display update (II)"
- Reply: Axel Kohlmeyer: "Re: frame number input in tcl and direct mol graph display update (II)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
If you implemented a GUI in Tcl/Tk, you could implement a "pause" button
or something similar. That gets trickier due to the way you'd have to
process the "loop" as a sequence of events/timeouts/etc, but its doable.
John
On Fri, Jul 27, 2007 at 11:56:24AM +0200, pascal.baillod_at_epfl.ch wrote:
> Thanks, John! That works perfectly indeed! I do something like:
>
> # loop over all
>
> set myFrSize [array size myFr]
>
> for {set fr 1} {$fr <= $myFrSize} {incr fr 1} {
> animate goto $myFr($fr)
> display update ui
> sleep 1
> puts $myFr($fr)
> }
>
> I just haven't yet figured out how to stop the loop when I observe an
> interesting frame..
>
> Thanks for any suggestion!
>
> Pascal
>
>
> *******************************************************************************
> Pascal Baillod (PhD student)
> *******************************************************************************
> Swiss Federal Institute of Technology EPFL Tel: +41-(0)21-693-0322
> Institute of Chemical Sciences and Engineering , Fax: +41-(0)21-693-0320
> Laboratory of Computational Chemistry and Biochemistry pascal.baillod_at_epfl.ch
> Room BCH 4121, Avenue Forel, http://lcbcpc21.epfl.ch
> CH-1015 Lausanne
> *******************************************************************************
-- 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
- Next message: zhenlong li: "Wrap only whole molecules"
- Previous message: John Stone: "Re: dssp in vmd (II)"
- In reply to: pascal.baillod_at_epfl.ch: "Re: frame number input in tcl and direct mol graph display update (II)"
- Next in thread: Axel Kohlmeyer: "Re: frame number input in tcl and direct mol graph display update (II)"
- Reply: Axel Kohlmeyer: "Re: frame number input in tcl and direct mol graph display update (II)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]