Maybe someone pointed this out before, but it’s new to me... The page below is an ongoing test page that I use, so there are some button and screen message issues (conflicts). Nevertheless one new JSME point is so much fun that I thought I’d point it out:
http://chemagic.org/molecules/mini2.html JSME now has a callback function: jsmeApplet.setCallBack("AfterStructureModified", sendToJmol); On the above page, I’ve set the callback sendToJmol to: function sendToJmol(jsmeEvent) { var jsme = jsmeEvent.src; var jmefile = jsme.jmeFile(); window.parent.jms('var molf2 = "' + jmefile + '"; load "@molf2"; hover off; delete hydrogen;calculate hydrogen;boundbox {*}; centerat boundbox; zoom 100;’); } (jms is a run Jmol script function) On the page, ignore the Jmol window messages and standard Jmol/JSME transfer arrow buttons. Just start drawing in the JSME window. Great fun… There are some loaded Jmol model issues via this route. I’ll try to figure them out and then ask Bob! Otis -- Otis Rothenberger o...@chemagic.org http://chemagic.org ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users