Bob, thanks for your tip on selecting/modifying bonds based on distance, it
Now I would like to know if there is a way to run a set of commands
(or script) automatically every time a new molecule is loaded. I am using
jmolAppletInline and loading molecules through a radio button with
a onClick="jmolLoadInline()" method inside a <form>. I know there is a
perhaps I don't know how to use it or is not intended for that purpose...
0 | Mauricio Carrillo Tripp, PhD
/ | Department of Molecular Biology
0 | The Scripps Research Institute
\ | 10550 North Torrey Pines Road
0 | La Jolla, California 92037
/ | trippm@...
0 | http://www.scripps.edu <http://www.scripps.edu/%7Etrippm>
** Aut tace aut loquere meliora silentio **
I think that "set defaultLoadScript" will oly work after the applet
has been inserted with "JmolApplet", and before the molecule is
Since you are doing everything inline, it probably won't work.
You may get what you want using "jmolLoadInlineScript" instead of
Maybe you could also do it:
jmolScript("set defaultLoadScript whatever")