Dear all,

I am new to Jmol and I have a problem I could not fix by reading the Jmol
documentation.

I have a JSmol pane in my web page and I set a callback function for pick,
which is called pickResidue:

  function pickResidue(jmolObj,msg,atomNo) {
  var atomIndex = atomNo+1;
  var atomInfo =
Jmol.getPropertyAsArray(jmolApplet,"atomInfo","atomIndex="+atomIndex+"");
  }

The function is correctly called when the user clicks on an atom.

The question is: how can I retrieve the "label" of the atom that was
clicked? I set such label in a Jmol script using the "set hoverLabel"
command and I would like to read it back in the pickResidue function to
decide what to do (visualize some information or not).

If this is not possible, is there any way to attach some data to the atoms
(via Jmol script) that can be accessed later on inside the pickResidue
function?

I would really appreciate any help as I already spent one day on this
problem without being able to solve it... :((

Thanks!
Roberto
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to