This is no problem in any version of Jmol since 10.2.

Michal Bozon wrote:

>..maybe I can use it in combination with centerAt command. I would move 
>the molecule so that the atom of interest would be in the center, and 
>then set the center to that atom.
>
>But there is a problem - I have to have the atom EXACTLY in the center 
>of the screen, moving the molecule with mouse to find the position is 
>not sufficient. So how do I find accurate parameters for moveto command 
>? Using centerAt command is useless (does change the center only, so it 
>does not affect the transformation matrix)
>  
>

accurate parameters:  (THIS IS 10.2)

set windowCentered on;
center (atomno=3)
show orientation

Copy off the orientation from the console. Perhaps I see:

  moveto 2.0 58 -997 -41 74.7 100
 
Smooth transistion:

set windowCentered off;
center (atomno=3);moveto 2.0 58 -997 -41 74.7 45;

Setting the windowCentering off prevents the jump -- the model rotates 
smoothly around the specified atom wherever it is on the screen.
The moveto then smoothly brings it from the current position to the center.

You will have to adjust that zoom (100 in this case, changed to 45), 
because the value delivered by show orientation the first time is with 
window centering on, so it scales somewhat differently.

Bob Hanson



>  -m
>
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to