Samuel,

Are you using JmolAppletProto.jar and Jmol-new.js?
from <http://www.stolaf.edu/people/hansonr/jmol/test/proto>?
(If you do, then either leave the jmolInitialize() call out or make it:

jmolInitialize("--dir-here--","JmolAppletProto.jar")


When you say "get anything" what do you mean? What's the exact context?

Can you point me to a URL?

Bob



Samuel Flores wrote:

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

--
--

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