From: Paul P. <pau...@ac...> - 2009-09-20 17:52:03
|
What about a reload ? Paul Le 20 sept. 09 à 18:45, Robert Hanson a écrit : > I think your best bet is to save the state when the applet loads and > then restore that state. Tell me if that doesn't work. > > On Sun, Sep 20, 2009 at 11:33 AM, Eric Martz > <em...@mi...> wrote: >> I am looking for the most efficient way to put Jmol into the same >> state as if it had just been started. >> >> I have scripts with delays that last over a minute, with zoomto's, >> moveto's, changes in coloring and rendering, animations, echos, >> labels, etc. These are played over and over. When the next cycle >> starts, I need to turn off/hide/reinitialize things that should not >> be present at the outset, so that each replay of the script looks the >> same. The second play of the script should not inherit anything from >> the first play. My goal is to come up with a short set of commands >> that accomplishes this for all situations. >> >> I am aware of these commands: >> initialize >> set defaults jmol >> reset >> zap >> >> I was surprised that "initialize" does NONE of these: >> set antialiasdisplay off >> animation off >> animation mode once >> set echo off >> >> (Should it?) >> >> "set defaults jmol" changes the rendering to ball and stick, but does >> not change coloring, and does nothing in the above list. >> >> I was surprised that the command "zap" DOES "set echo off", >> "animation mode once", "animation off". >> It does NOT do: >> set antialiasdisplay off >> >> Thus, NONE of zap, reset, initialize, set defaults jmol does >> set antialiasdisplay off >> >> Thus, I would guess that the following script would be the shortest >> one that would do what I want. However, possibly there are other >> settings that are not reset by any of these, that I have not yet >> discovered. These might require additional commands. >> >> zap >> initialize >> set defaults jmol >> reset all >> set antialiadisplay off >> >> >> Suggestions? >> >> Thanks, -Eric >> >> >> --------------------------------------------------------------------- >> --------- >> Come build with us! The BlackBerry® Developer Conference in >> SF, CA >> is the only developer event you need to attend this year. >> Jumpstart your >> developing skills, take BlackBerry mobile applications to market >> and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Jmol-users mailing list >> Jmo...@li... >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> > > > > -- > Robert M. Hanson > Professor of Chemistry > St. Olaf College > 1520 St. Olaf Ave. > Northfield, MN 55057 > http://www.stolaf.edu/people/hansonr > phone: 507-786-3107 > > > If nature does not answer first what we want, > it is better to take what answer we get. > > -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 > > ---------------------------------------------------------------------- > -------- > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market > and stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users |