Eric,
Actually, it's just
set windowCentered false
:)
Bob
On Mon, Nov 9, 2009 at 6:38 PM, Robert Hanson <[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
> 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
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