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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to