Bob,
I use a hover call back to independently select then mouse
rotate/translate individual models in the Jmol window. If a call model
kit mode prior to setting up a rotate/translate, then the model kit mode
hover selection circles persist even though model kit mode is turned off
prior to calling the rotate/translate process. In plain Jmol script
language, here's the sequence:
1) model kit on.
2) do stuff
3) model kit off
4) Jmol Script: frank off;axes on;moveto 2 front;hover "";set
hoverDelay .001
The above is sufficient to create the hover circle persistence. My hover
call back is:
function processHover(appNum, messageString, indexNum) {
if (fragRotPicOn) {
execScript("select within(branch, {atomIndex=1000}, {atomIndex
= _atomHovered});");
}
}
But the problem exists even if the Boolean above is set to false. In
other words, "frank off;axes on;moveto 2 front;hover "";set hoverDelay
..001" is enough to create the problem.
Is there any direct way to turn the model kit hover circles of other
than "hover off?" The latter stops the persistence, but it also kills my
callback.
I might as well also ask you to remind me what the code is for the
maximum atomIndex. I know that I should not be using the atomIndex=1000
trick.
Otis
--
Otis Rothenberger
chemagic.com
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users