Otis -- You probably think I've been ignoring you. Just busy getting Jmol
reading SMILES and SMARTS strings and also generating SMILES code. That's
working now, so back to work on this!

Yes, there are several issues there. Bond picking is also still in force
after leaving model kit mode.

... OK, what was happening was that entering modelKit mode settings were
automatically changed, but leaving it they were not. If you want to
temporarily have  a fix, try adding these after that modelKit off setting:

set picking ident
set bondPicking false
set pickingStyle toggle

In the next release of Jmol this will not be necessary, but won't hurt,
either.

Bob


On Fri, Jun 4, 2010 at 10:16 PM, Otis Rothenberger <[email protected]>wrote:

> 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
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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

Reply via email to