Thanks to everyone who helped to release 11.8.9. Its great! Bob, in http://MolecularPlayground.Org I am trying to let people rotate the molecule at any time in the animation, including, for example, during zooming. Therefore I am minimizing the use of moveto and zoomto because these "fight" with concurrent user-induced-rotations, inexorably going to the specified orientation.
So for zooms, I am just running a loop with "zoom" commands in small increments. The problem was to make the zoom center stay where I put the molecule (down a bit). Well, in Jmol 11.8.8 "set windowcentered false" did NOT free zoom from recentering in the window center, but I see that this is fixed in 11.8.9 -- HOORAY! So now "set windowcentered false" is the equivalent of Chime's "set zoomcenter off" which was very useful. Jmol continues to rock! -Eric At 11/9/09, Robert Hanson wrote: >Eric, > >Actually, it's just > >set windowCentered false > >:) > >Bob > > >On Mon, Nov 9, 2009 at 6:38 PM, Robert Hanson ><<mailto:[email protected]>[email protected]> wrote: >Eric, there is a way around this, but I have to check to see if >there is a bug there. The issue is that the zoom command also >recenters. The solution is to do the moveto command with the same orientation: > > >var q = script("show orientation rotation") >moveto quaternion @{!q} 100 0 10 > >That sets the orientation to the current orientation and zooms to >100% at a translation of 10% in y. >All in one go it looks like: > >moveto quaternion @{!script("show orientation rotation")} 100 0 10 > > > >Bob > > >You have the echo background, so that should do it. So I'm not >catching on to the problem, I think. >To test, what I did was this: > >load 1crn.pdb > >center 1 > >now I zoomed out so that it was just a spot. With CTRL-ALT, I moved >the spot to wherever I wanted. That's the center of zoom. Now >zooming out, it is rotating about residue 1 at that screen position. >I'm pretty sure that's what you are after. > >Is it just that you haven't figured out how to do that with a script? > >I see in the state script: > > moveto 0.0 { 997 -20 73 172.8} 134.42 -11.6 34.33 {17.231571 > 12.934429 4.9705715} ... > >134.42 is the zoom; -11.6 34.33 are the x and y translations in >screen percent. > >Really that should do it. You want something like: > > moveto 0.0 { 997 -20 73 172.8} 100.0 0 10 {17.231571 12.934429 4.9705715} > >(zoom is 100%, x-translation 0%, y-translation 10%, center model on residue 1) > > >Bob > >-- >Robert M. Hanson >Professor of Chemistry >St. Olaf College >1520 St. Olaf Ave. >Northfield, MN 55057 ><http://www.stolaf.edu/people/hansonr>http://www.stolaf.edu/people/hansonr >phone: 507-786-3107 > > >If nature does not answer first what we want, >it is better to take what answer we get. > >-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 > > > > >-- >Robert M. Hanson >Professor of Chemistry >St. Olaf College >1520 St. Olaf Ave. >Northfield, MN 55057 ><http://www.stolaf.edu/people/hansonr>http://www.stolaf.edu/people/hansonr >phone: 507-786-3107 > > >If nature does not answer first what we want, >it is better to take what answer we get. > >-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 >------------------------------------------------------------------------------ >Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >trial. Simplify your report design, integration and deployment - and focus on >what you do best, core application coding. Discover what's new with >Crystal Reports now. http://p.sf.net/sfu/bobj-july >_______________________________________________ >Jmol-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

