Am 02.08.15 um 20:34 schrieb [email protected]:
> Hi,
>
> I'm trying to create a highlight effect when the user keeps the mouse
> over a residue, so besides the label I'm also changing the residue color.
> I'm using hoverCallback to set the color but I also need a hover out to
> set the color back to the original.
>
> 1. Is there a 'hover out' callback or other way to achieve this?
As far as I remember the 'hover' callback is fired on both events: 'in'
and 'out'. If you keep track what happened at the last call of your
callback function you will be able to restore what was done.
> 2. How can I get the current colors from a residue, for example, get the
> colors from [SER]679:B.CA <http://B.CA> ?
>
'color' is an atom property that can be queried (see
http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#atomproperties),
e.g.:
atomColor = {[SER]679:B.CA}.color
Regards,
Rolf
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users