Thanks, Tim.

As far as I am concerned, all future development by users involving callbacks should be reserved for:

1) User click notification
2) Frame change notification

Any other use is simply not taking advantage of what we have now with the getProperty business.


-Bob

Timothy Driscoll wrote:

On May 23, 2006, at 1:26 p, Bob Hanson wrote:

Sam, I recommend using Jmol-new.js and Jmol 10.x. With that what you desire is trivial and requires no callbacks at all, just:


var orientationInfo = jmolGetPropertyAsArray("orientationInfo")

This does the equivalent of:

orientationInfo=new Array()
orientationInfo.moveTo="moveto 1.0 -345 -938 -23 64.8;"
orientationInfo.rotateZYZ="reset; rotate z -160.7; rotate y 64.8; rotate z 159.0;"
orientationInfo.transYPercent=0
orientationInfo.transXPercent=0
orientationInfo.zoom=100
orientationInfo.rotateXYZ="reset; rotate x -35.1; rotate y -58.6; rotate z 18.5;"


Bob, I knew if I mentioned your name often enough, you would provide a better solution. :-) I would certainly recommend the above in lieu of callbacks; although I have never had trouble with callbacks myself, they are problematic in general.

tim

--
--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge." - Albert Einstein



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to