I would like to click on an atom, and have the molecule move slowly
to make that atom the new center. This is exactly what "set picking
center" now does.
However, "set picking center" zooms 2x if you click the same atom
again, and zooms 1/2x if you click and miss the atom. I definitely do
not want these zooms and their accompanying change in rotationRadius
(which affects the zoom at "zoom 100").
1. I would be thrilled if a way can be provided to disable this
zooming that apparently is unconditionally part of the current "set
picking center" mode. ("set pickingCenterZoom off"?)
Further, I would like to have the "picking center" mode go off after
one click. Is there some way I can detect the first click in
javascript in order to do this? Unfortunately, in "set picking
center" mode, there is no pickCallback. If memory serves, this is
different from the behavior of Chime.
2. I would be thrilled if pickCallback can be enabled in "set picking
center" mode. The report could be the same as "set picking ident"
plus the word "centered".
OTHER POSSIBLE SOLUTIONS
Rather than using "set picking center", I could use "center" on the
atom reported by pickCallback (in "set picking ident" mode). However,
"center" also has the zooms that I don't want.
3. If #1 above is implemented, it seems logical to extend the "no
zooming" setting to the "center" command. Perhaps "set centerZoom
off"? (affecting both "set picking center" and "center").
If I use "set picking ident" to generate a "center" command, and if I
had "set centerZoom off", then I could "turn off centering" after the
first click, as I wish (since the click is reported by pickCallback).
This would make request #2 above unnecessary.
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.
I faced the same problems with Jmol 10.2 when I wrote FirstGlance in
Jmol in 2005. In that version, "set picking center" did not zoom, but
moved to the new center instantaneously. That is what I used,
although I would have preferred to automatically turn off centering
after one click (I couldn't because there is no "pickCallback"), and
to slide slowly to the new center.
Even in Jmol 10.2, "center" was accompanied by zooming that I didn't
want. Therefore I used "set picking center" in FirstGlance in Jmol.
SUMMARY
In conclusion, I don't know any way to click and atom and then slide
smoothly to that atom as a new center, without zooming, and to
automatically go out of "click to center" mode after one click. I
would like this functionality in both FirstGlance in Jmol, and in the
Jmol Tutorial-Authoring Template.
Thanks, -Eric
-------------------------------------------------------------------------
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