First, congratulations to the developers who ported Jmol from Java to
JavaScript / HTML5. It really satisfies the need for allowing Jmol to
continue in the tablet environment and in a locked-down student
desktop environment. It must have been a huge amount of work. Well
done!

It's a long time since I was on the Jmol mailing list or did any work
with Jmol, but I still have a web application serving
three-dimensional protein motifs that uses Jmol
(http://motif.gla.ac.uk), and some teaching material I created with
this is still used by others (I am semi-retired now). It was in this
latter context that I decided to convert from Jmol to JSmol, which I
had only recently discovered by chance when on the PDB site. I decided
to try to convert to the most minimal non-Java setup, and for the most
part this has been successful - the pdb files are loading and
displaying. You can see one of them at:

https://www.mvls.gla.ac.uk/Teaching/SLS-Molecules/njmol.html

The legacy scripts behind the JavaScript checkboxes  (jmolCheckbox) on
these pages generally worked, but there were a couple that did not.
One was the "hbonds on", which failed (and I commented out), but while
composing this message I have discovered works with a preceeding
"hbonds calculate". The second is the spin. Previously if I had spin
running and operated the toggle between side view and base-stacking
view the spin continued. Now it does not. The scripts are:

Jmol.jmolCheckbox(myJmol, "spin off; spin on;", "spin on; spin off;",
" Spin", true); // for spin

Jmol.jmolCheckbox(myJmol, "reset;", "reset;rotate x 90;",
" Toggle Base-stacking view");  // for flip between views

I can't just put in a command "spin on" after the flip because the
user might have turned spin off and in that case the result would be
wrong. Anyone know why this has changed (it was a very old version of
Jmol java I was using) and, more to the point, is there a way to put
in a conditional statement so that the original spin state (on or off)
is restored?

Thanks

David

------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to