[Jmol-users] hover highlighting

2015-08-03 Thread Ron Mignery
trematodeo wrote > As I understand basically I'm doing the same as you > but you are scripting inside jmol and I'm using javascript, right? Yes, no javascript for me. Incidentally if I reduce the timeout to 0.4 the highlight flashes! -

Re: [Jmol-users] Hover highlighting

2015-08-03 Thread trematodeo
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 wrote: > This

[Jmol-users] Hover highlighting

2015-08-03 Thread Ron Mignery
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)" } functi

[Jmol-users] Hover highlighting

2015-08-03 Thread Ron Mignery
Slightly larger I meant... -- ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users