Oh, cool!
print getproperty("modelinfo.models.name")
[list of names]
print getproperty("modelinfo.models.modelProperties.frequency")
[list of frequencies]
Why didn't I think of this before??
Bob
On Fri, Aug 20, 2010 at 9:37 PM, Robert Hanson <[email protected]> wrote:
> Just added to Jmol 12.1.8:
>
> print getProperty("shapeInfo.isosurface.ID")
>
> isosurface1
> s2
> surface3
>
>
>
> That is, if a property happens to be a list of associative arrays (a very
> common thing), then whereas normally you would think you would have to do
> this:
>
> print getProperty("shapeInfo.isosurface[1].ID")
> print getProperty("shapeInfo.isosurface[2].ID")
> print getProperty("shapeInfo.isosurface[3].ID")
>
> since Jmol knows isosurface is a list, and ".ID" only refers to associative
> arrays, we can assume you want the list of IDs of all the isosurfaces. 10
> lines of code! :)
>
> Bob
>
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users