wow. You mean have enantiomers and make them rotate opposite directions
using mouse action? That's a very clever idea!

Yes, I think so. You would include a syncCallback, which allows you to
modify the call or make the secondary call yourself. You would have to
negate the x and y changes in the"Mouse: rotateXYBy" callback and return
that changed script from your  callback function.

At least I think that should work. Something like this:

function mysynccallback(app, script) {
  if (script.indexOf("Mouse: rotateXYBy") == 0) {
    var S = script.split(" ");
    S[2] = -parseFloat(S[2]);
    S[3] = -parseFloat(S[3]);
    script = S.join(" ")
  }
  return script
}




On Thu, Oct 25, 2012 at 3:37 PM, Carl R LeBlond <[email protected]> wrote:

> Is it possible to sync two applets but have them rotate such that one
> looks likes its the mirror image of the other?  Maybe someone could
> point me to an example.  Thanks much!
> > Carl
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to