Something like:

http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/compare.htm

but maybe better? I experimented with this a bit but didn't finish the job.

This can be done in JavaScript. The way this page is working is:

JmolScript> set loadStructCallback "myfunc"

JavaScript>

syncEnabled = false;

function myfunc(app,message,param) {
 setTimeout("loadB()",100)
}

function loadB() {
 syncEnabled = true
 startSync()
}

function startSync() {
 setTimeout("sync()",100)
}

inSync=false
function sync() {
 if (inSync)return
 inSync=true
 var syncing =  syncEnabled && document.getElementById("drive").checked
 if (syncing && syncingA) {
   var s = jmolGetPropertyAsArray("orientationInfo","","A").moveTo
   jmolScriptWait(s.replace(/1\.0/,"0.1"),"B")
   inSync=false
   startSync()
 } else if (syncing && syncingB) {
   var s = jmolGetPropertyAsArray("orientationInfo","","B").moveTo
   jmolScriptWait(s.replace(/1\.0/,"0.1"),"A")
   inSync=false
   startSync()
 }
 inSync=false
}


But if you can figure out a scheme that would be reasonable in terms of 
setting up this function wihtin Jmol -- I would want it to be possible 
to designate what applets are to be synced, not just "all applets on the 
page" -- then I can see if I can implement it. Maybe some interesting 
issues there.

Bob


Timothy Driscoll wrote:

>On May 23, 2007, at 10:44 AM, Bob Hanson wrote:
>
>  
>
>>I think all of Jmol is "synch on" then isn't it? If you rotate any
>>structure, all structures rotate. To do otherwise you have to use Jmol
>>l1.1's "rotateSelected" command.
>>
>>    
>>
>sorry; I guess I wasn't that clear.  Jmol does rotate all structures  
>in the same applet, yes.  I was referring to control of multiple  
>applets on the same page.
>
>
>  
>
>>Do you know where a description of the Chime command is? I can't  
>>find it
>>at http://www.life.uiuc.edu/crofts/bc1_in_chime/chime_talk/index.html
>>
>>    
>>
>I haven't had much luck either.  it's possible they have replaced it  
>with sendmouse?
>
>"
>Tag name: sendmouse
>
>Description: Specifies whether to send Chime's mouse events to  
>another target Chime plug-in
>
>Syntax: sendmouse={false|true}
>
>false - do not send mouse events to another target Chime plug-in
>
>true - send mouse events to another target Chime plug-in
>"
>
>
>
>
>  
>
>>Timothy Driscoll wrote:
>>
>>    
>>
>>>hi,
>>>
>>>does Jmol implement an equivalent to the Chime synch parameter?  in
>>>Chime, synch gave the user mouse control of *all* structures on a
>>>page by controlling any one structure.  (in other words, rotate one
>>>and all structures rotated.)
>>>
>>>I looked through the mail archives and the doc, but even though I
>>>seem to remember recent discussion on this topic, I found nothing
>>>relevant.
>>>
>>>
>>>many thanks,
>>>
>>>tim
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------- 
>>---
>>This SF.net email is sponsored by DB2 Express
>>Download DB2 Express C - the FREE version of DB2 express and take
>>control of your XML. No limits. Just data. Click to get it now.
>>http://sourceforge.net/powerbar/db2/
>>_______________________________________________
>>Jmol-users mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/jmol-users
>>    
>>
>
>tim
>  
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to