Frieda Reichsman wrote:
Also, testing this on the spin.html page, set perspectiveDepth on/off snaps the currently centered set to the center of the applet and to zoom 100-- even when set windowCentered is OFF (maybe this can be changed).
Which brings up the point, also addressed below - that a "center" command automatically sets the zoom to 100, which I think is a big disadvantage.
we're correcting this.
I will come up with an example and send under separate cover. But in the meantime here is basically how it works.
I script my way around the snap to center by always moving the structure (via moveTo) so that the centered atomset is at what I judge by eye to be center of the applet window (XY). Then I center the atomset, and look at the jump. I adjust the xtrans and y trans coordinates of the moveTo decrease the amount of jumping. I reiterate this process until the jump is minimized. This is far from perfect
Oy. You're working around a bug. Next week the bug will be gone and you will not have to do this.
I believe you should be able to:
1) do your moveTo command
2) set windowCentered OFF; center (whatever) -- no jump
3) rotate to your heart's content -- no jumps
4) center (somewhere else) -- no jump
5) rotate to your heart's content -- no jumps
...etc., repeating as many times as desired -- no jumps
The only time you SHOULD see a jump is if you have
set windowCentered ON
which is the default condition, and then:
center (wherever)
Then you SHOULD see a jump, as that center is brought to window frame center.
The question of zoom and its relation to camera position and perspectiveDepth is another separate issue that we need to address along with this centering business.
Miguel and I are working on this.
Miguel suggested that discussion of this move onto the developer's list, which I am not on. Should I subscribe, or can you cc me when relevant?
happy to cc you. Really appreciate your taking an interest in this.
Bob
--
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
"Imagination is more important than knowledge." - Albert Einstein
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
_______________________________________________
Jmol-users mailing list