Josh, it's a simple solution. Because you have two different models, you 
need to send just the mouse motions, not the actual moveto commands. 
Your "Synchronize Molecules" checkbox needs to read:

  set syncMouse ON;set syncScript OFF;sync * ON; sync > "set syncMouse 
ON;set syncScript off"

and

  sync * off

to one of the applets.

Explained:

  set syncMouse ON;set syncScript OFF;

# don't send moveto commands, just user mouse motions

 sync * ON;

# turn syncing on for all applets

 sync > "set syncMouse ON;set syncScript OFF";

# set all applets to the same sort of synchronizing


Hope that helps.


Bob


josh wrote:

>Hi Bob,
>
>thanks for your reply, but could you please be a little more specific on
>this. Here's a minimal page where I've tried this and it's not working:
>
>http://zhah.djobscura.com/fd834mxcv9Molecules/molecules_simple_sync.html
>
>The code in question is this:
>
><script type="text/javascript">
>    jmolCheckbox("sync * on; set syncMouse on; set syncScript
>off;","sync * off;","Synchronize Molecules  ", false, "jmolCbSync");
></script>
>
>
>Also, Eric mentioned a sync entry in the "jmol manual", but I can't
>locate one and I'm not even sure which "manual" he meant. He didn't mean
>this, did he?
>
>http://chemapps.stolaf.edu/jmol/docs/?ver=11.4#sync
>
>because from these docs, it's not really clear how to use it.
>
>cheers,
>
>-j
>
>
>[EMAIL PROTECTED] wrote:
>  
>
>>Right -- Not a bug, but not an obvious solution, either. That would be
>>because you are doing a sync of the orientation, which includes the
>>center and zoom. So that sort of sync is not applicable to situations
>>where there are two totally different models with two totally different
>>centers. It just wasn't designed for that.
>>
>>The solution is to use
>>
>>  set syncMouse ON
>>
>>in order to send the actual mouse motions, not the full orientation.
>>
>>At least give that a try and see if it solves your problem.
>>
>>Bob (back in the U.S.)
>>    
>>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to