Nico has just released 11.1.36. Mostly this is a set of random bug
fixes, some associated with the new language translations. But there is
one important fix. It's actually fairly important that you NOT use
11.1.32-35 in any production web pages, because there's a bug in there
that could make your page unreadable for anyone with a certain type of
default language on their machine. You'll never know it. -- anyway,
please try 11.1.36.
Just one added feature. You can now zoomTo and moveTo a group and
designate the zoom in each case to be based on that group's radius, not
the model's. In this way you can fill the screen with any set of atoms
you want to, and you can go to this zoom setting smoothly.
zoomTo timeSec (atom expression) zoomSetting
It's all in that last bit, the zoomSetting. This of course can be just a
number:
zoomTo 2.0 (His89) 200
But if you use 0 instead:
zoomTo 2.0 (His89) 0
it zooms to the "natural" zoom setting for that group.
You can still use the newer options for zoom:
+ x
- x
* x
/ x
with this:
zoomTo 2.0 (His89) 0 +200 # 200 more than the natural zoom for His89
zoomTo 2.0 (His89) 0 *2 # twice the natural zoom for His89
etc.
For moveTo, which is a much more complicated command, it looks like
this, basically:
moveTo timeSec {axisAngle} (atom expression) zoomSetting
and, not quite cleanly, if you want to add translation to that, you need:
moveTo timeSec {axisAngle} 0 transX transY (atom expression) zoomSetting
I'm sorry about that "0" there. It's because that's the place in the
moveTo command the zoom usually goes, but this sort of zoom requires
that we know the atom expression already, so zoomSetting has to come
after the atom expression. Probably I'll take that out, but that's the
way it is right now. Please try this and tell me what you think of it.
I was playing around and noticed that, for instance, you can do:
zoom (*) 0
Which you might think would be the same as:
zoom 100
but it's not quite the same, and I guess that's OK. In the first case we
are basing the center on the geometric center of the atoms; in the
second on the center of the "bounding box" -- an imaginary box that
nicely fits all atoms. Anyway, it's not quite the same.
Bob
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users