Dear Bob, 1. I don't see the applicability of jmolScriptWait(): a report is generated by jmolScript() (so the commands are being executed) but the report is incomplete.
2. You can see this bug here: Go to http://www.bioinformatics.org/jmol-tutorials/jtatjmol12/jtatdemo/contents/contents.htm Note this is Jmol 12.0.8. Open Jmol's console. Click on the "Toggle Spinning" button just beneath Jmol. Spinning never stops. The reports from "show spin" appear in the console, but never end with "spin on". If you simply type "show spin" into the console, every second time "spin on" is present in the report, and that triggers a "spin off" command via messageCallback(). Thus, the report is correct when generated from a "show spin" issued in the console, but not correct when the "show spin" comes from jmolScript("exit; show spin;") In contrast when the ONLY difference is the use of Jmol 11.6.RC12, the toggle button works fine, and you can see the reports in the Jmol Console: http://www.bioinformatics.org/jmol-tutorials/jtat/jtatdemo/contents/contents.htm Every second report includes "spin on" and the toggle works, even tho the "show spin" is coming from jmolScript(). Thanks, -Eric At 8/22/10, Robert Hanson wrote: >On Sun, Aug 22, 2010 at 5:32 PM, Eric Martz ><<mailto:ema...@microbio.umass.edu>ema...@microbio.umass.edu> wrote: >Hello, > >I am trying to update the Jmol in my "Jmol Tutorial Authoring >Template" (JTAT, ><http://www.bioinformatics.org/jmol-tutorials/>http://www.bioinformatics.org/jmol-tutorials/) > >from >11.6.RC12 to 12.0.8. I appear to be observing the following anomaly: > >When I type "show spin" into Jmol's console, the report ends with >"spin on" when spinning is on, and "spin on" is simply omitted when >spinning is off. > > >correct. > > >This is what I expect, and my code uses it to toggle >spinning in up to 4 concurrent jmols. > >However, when jmolScript("exit; spin on;", "1") is executed, the >report never ends with "spin on" even when spinning is on. (Thus my >existing code never toggles spinning off.) > > >what report is that? Sometimes after the script command is given? >Maybe you need > >jmolScriptWait("exit; spin on") > >so that Jmol doesn't just cache the script. I bet that's what is happening. > > > >Is this a bug? The report is correct in 11.6.RC12 but not in 12.0.8. > > >Hmm. But then why the version difference. > >Be more specific about the sequence of events. > > >Thanks very much, -Eric > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge ><http://p.sf.net/sfu/RIM-dev2dev>http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >Jmol-users mailing list ><mailto:Jmol-users@lists.sourceforge.net>Jmol-users@lists.sourceforge.net >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>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 >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >Jmol-users mailing list >Jmol-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users