This page demonstrates how to synchronize applets in Jmol.
The two applets are jmolAppletA and jmolAppletB. Once the checkbox is checked, going to either one controls the other.
The command used here is simply:
Alternatively, we could have used:
which would cause only the applet on the top to do the controlling, but allowed the bottom applet to be moved independently of that control. Also, if you open a console on one, you can give commands to the other using something like:
The ">" means "all other synchronized applets". Other options include "*" (all synchronized applets) and "." (only this applet, if it is synchronized). In addition, you can specify the applet by its extension, "A" or "B", or by its full name, "jmolAppletA" or "jmolAppletB" in this case.
Starting with Jmol 11.6, you can also use the script command with the APPLET option to send scripts to one or more applets. This operation is independent of the state of sync being ON or OFF.
Also new in Jmol 11.6, you can use the Jmol math script() function to get information from another applet. Simply indicate the target applet as a second parameter to the script command. For example, from Applet A's console, type: