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
--
Timothy Driscoll                                em: [EMAIL PROTECTED]
Virginia Bioinformatics Institute               ph: 540-231-3007
Bioinformatics I                                im: molvisions
Washington St., Blacksburg, VA 24061

"Had 'em and we lost 'em."





-------------------------------------------------------
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