> 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,....

Atom indices will not do you much good ... they are for internal use.

I do not recall any external APIs that allow one to perform any operations
on atom indices.

> 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?

This seems better ... more useful.

I don't recall exactly what the behavior would be for simple file types,
like XYZ.


Per my other message, we need to change the method name.


Miguel



-------------------------------------------------------
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&kid3432&bid#0486&dat1642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to