Dear Angel,

Hurray! I think your suggestion will solve my problem. I had not 
tried zoomto with an atom set and no zoom. Indeed, it slides to the 
new center, with no change in zoom.

If you enter the same command, e.g.
zoomto 2 (atomno=1715)
twice, the first time centers the atom, and the second time (after it 
is already centered) zooms two fold. However, this can be avoided with

zoomto 2 (atomno=1715) *1

Thus I can avoid an unwanted zoom should the user inadvertantly 
center the same atom twice.

So, in "set picking ident" mode, I can use the atom identification 
message to generate the zoomto command. Furthermore, I can then turn 
centering mode (in my javascript) off after one click. This solves everything.

Thanks again, -Eric

At 1/13/08, you wrote:
>Eric, your question is complex, but for now I have an answer for a part of it:
>
>On 12 Jan 2008 at 17:57, Eric Martz wrote:
> > However, this solution centers instantaneously. It would be so much
> > nicer to "slide" to the new center over a second or so. Can the
> > "moveTo" command change the center without any rotation or zooming?
> > If so, I have been unable to discern the syntax.
>
>You can do that using
>    zoomTo 1 (myAtomSet)
>without any zoom value, it seems to keep the current zoom level. The 
>1 is for 1
>second.
>
>(Functionality of "center", "zoomTo" and "moveTo" now overlaps quite a bit.)
>
>You could also zoom in, if you want, with
>    zoomTo 1 (myAtomSet) *2
>
>Tested on 11.4.RC1
>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
Eric Martz, Professor Emeritus, Dept Microbiology
U Mass, Amherst -- http://www.umass.edu/molvis/martz

Top Five 3D MolVis Technologies http://Top5.MolviZ.Org
Biochem 3D Education Resources http://MolviZ.org
See 3D Molecules, Install Nothing! - http://firstglance.jmol.org
Protein Explorer - 3D Visualization: http://proteinexplorer.org
Workshops: http://workshops.proteinexplorer.org
World Index of Molecular Visualization Resources: http://molvisindex.org
ConSurf - Find Conserved Patches in Proteins: http://consurf.tau.ac.il
Atlas of Macromolecules: http://atlas.proteinexplorer.org
PDB Lite Macromolecule Finder: http://pdblite.org
Molecular Visualization EMail List (molvis-list):
       http://bioinformatics.org/mailman/listinfo/molvis-list
- - - - - - - - - - - - - - - - - - - - - - - - - - - */


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to