Hi Ron,

As I understand basically I'm doing the same as you but you are scripting
inside jmol and I'm using javascript, right?

This works for me, I was just concerned because this callback behavior is a
bit odd for me.

Thanks for sharing!


On 3 August 2015 at 12:11, Ron Mignery <[email protected]> wrote:

> This works for me to highlight amino acids in a polypeptide or nucleotides
> in RNA/DNA:
>
> function cb_h (){
> timeout "myid" 1.0 ""
> timeout "myid" off
> res = {atomIndex=_atomHovered}.resno
> color (resno=res) rasmol
> color (resno=res) and (atomName="O??") pink
> timeout "myid" 1.0 "h_timed_out(res)"
> }
> function h_timed_out(res) {
> color {resno=res} jmol
> }
> set hoverCallback "jmolscript: cb_h()"
>
> I found that timeout "myid" off by itself is insufficient to kill the
> timeout routine when in a callback. Probably some threading issue...
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to