I have two Jmol applets talking to each other directly. See

http://chemapps.stolaf.edu/jmol/docs/examples-11/sync.htm

which has two synced applets that are driven based on which one has the 
focus.

And, if that works, try:

http://chemapps.stolaf.edu/jmol/docs/examples-11/sync4.htm

which has four applets, all synced, but only two drivers.

Does this work any better on Macs?

The JavaScript code is simply:

 _jmolGetApplet("B").syncScript("slave")
 _jmolGetApplet("A").syncScript("on")

Eric Martz, you might want to experiment with this. The following 
commands are possible:

 _jmolGetApplet("A").syncScript("slave")  // designate as slave applet
 _jmolGetApplet("A").syncScript("on") // designate as driver and turn 
syncing on
 _jmolGetApplet("A").syncScript("off") // stop syncing

I think you have to designate the slaves before you start syncing.


   

-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to