I've just made a commit that adds an example of what I'm after in my first "real" contribution to Jmol:

applet.getAppletInfo("atomList","<atom selection>")

With this addition, one can query the applet to find out which atoms are in a particular set.
So, for example, one could query:

applet.getAppletInfo("atomList","*/3 and carbon")

to find out which atoms are carbon atoms in model 3.

or

applet.getAppletInfo("atomList","selected")

to find out what is currently selected.

The return is just a list of atom indices right now:

0,3,5,6,....

but I'm thinking of adding
applet.getAppletInfo("atomListExtended","<atom selection>")

that would return JSON strings that would detail atom designator, model, x, y, z, etc.

What do you think?

Bob Hanson



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to