Am 06.11.15 um 00:43 schrieb Feng, Shihai:
> Hi all,
>
> Is there way to zoom in to certain residues (say 112-123 in protein 2B4C)
> in jsmol?
Yes, the 'zoom' and 'zoomto' command have options for this. 'zoom' jumps
directly to the new position and zoom factor. 'zoomto' transforms the
current view smoothly to the new position. See the Jmol scripting
documentation for details
("http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#zoom",
"http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#zoomto").
For the example the commands could look like this:
zoom {resno>=112 and resno<=123 and :H} 0
zoomto {resno>=112 and resno<=123 and :H} 0
I added a chain identifier to the atom expression because otherwise one
wouldn't see much difference to zooming the full structure.
Regards,
Rolf
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users