»»»JIJI«««.::::: wrote: > Dear ALL, > > Is their is any way to get the Atoms/Residue/Molecule from the applet > which the user select > > > The atom index (0 through N) of the atom picked is saved in the _atomPicked variable.
You can use a pick callback and then something like: var group = jmolEvaluate('within("group",{atomIndex=_atomPicked})') var molecule = jmolEvaluate('within("molecule",{atomIndex=_atomPicked})') If you want an easier to read listing, use: var groupList = jmolEvaluate('within("group",{atomIndex=_atomPicked}).ident') which gives something like this: [LYS]60:A.N [LYS]60:A.CA [LYS]60:A.C [LYS]60:A.O [LYS]60:A.CB [LYS]60:A.CG [LYS]60:A.CD [LYS]60:A.CE [LYS]60:A.NZ Bob >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >------------------------------------------------------------------------ > >_______________________________________________ >Jmol-developers mailing list >Jmol-developers@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/jmol-developers > > -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers