VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Fri Jul 27 2007 - 13:56:05 CDT
- Next message: Irene Newhouse: "problem with rmsd-fullthrottle"
- Previous message: Axel Kohlmeyer: "Re: Wrap only whole molecules"
- In reply to: John Stone: "Re: frame number input in tcl and direct mol graph display update (II)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Fri, 27 Jul 2007, John Stone wrote:
JS> Hi,
JS> If you implemented a GUI in Tcl/Tk, you could implement a "pause" button
JS> or something similar. That gets trickier due to the way you'd have to
JS> process the "loop" as a sequence of events/timeouts/etc, but its doable.
yep. this would be very similar to what is done in
the multimolanim plugin. you'd just need to add a
field to enter the sequence of frames that you want
to loop over.
http://www.ks.uiuc.edu/Research/vmd/plugins/multimolanim/
cheers,
axel.
JS>
JS> John
JS>
JS>
JS> On Fri, Jul 27, 2007 at 11:56:24AM +0200, pascal.baillod_at_epfl.ch wrote:
JS> > Thanks, John! That works perfectly indeed! I do something like:
JS> >
JS> > # loop over all
JS> >
JS> > set myFrSize [array size myFr]
JS> >
JS> > for {set fr 1} {$fr <= $myFrSize} {incr fr 1} {
JS> > animate goto $myFr($fr)
JS> > display update ui
JS> > sleep 1
JS> > puts $myFr($fr)
JS> > }
JS> >
JS> > I just haven't yet figured out how to stop the loop when I observe an
JS> > interesting frame..
JS> >
JS> > Thanks for any suggestion!
JS> >
JS> > Pascal
JS> >
JS> >
JS> > *******************************************************************************
JS> > Pascal Baillod (PhD student)
JS> > *******************************************************************************
JS> > Swiss Federal Institute of Technology EPFL Tel: +41-(0)21-693-0322
JS> > Institute of Chemical Sciences and Engineering , Fax: +41-(0)21-693-0320
JS> > Laboratory of Computational Chemistry and Biochemistry pascal.baillod_at_epfl.ch
JS> > Room BCH 4121, Avenue Forel, http://lcbcpc21.epfl.ch
JS> > CH-1015 Lausanne
JS> > *******************************************************************************
JS>
JS>
-- ======================================================================= Axel Kohlmeyer akohlmey_at_cmm.chem.upenn.edu http://www.cmm.upenn.edu Center for Molecular Modeling -- University of Pennsylvania Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323 tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425 ======================================================================= If you make something idiot-proof, the universe creates a better idiot.
- Next message: Irene Newhouse: "problem with rmsd-fullthrottle"
- Previous message: Axel Kohlmeyer: "Re: Wrap only whole molecules"
- In reply to: John Stone: "Re: frame number input in tcl and direct mol graph display update (II)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]