Hmm.. well I don't get anything in orientationInfo.rotateXYZ except "undefined". It seems to expect three parameters, not just one -- could this be the issue?
Samuel Flores Graduate Student Gerstein Lab Office: Bass 437 266 Whitney Avenue New Haven, CT 06520 203.432.5405 Home: 28 Pearl Street New Haven, CT 06511 cell: 203.747.2682 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Timothy Driscoll Sent: Tuesday, May 23, 2006 2:44 PM To: [email protected] Subject: Re: [Jmol-users] save orientation? 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 ------------------------------------------------------- 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

