Thanks Bob! Eran
__________________________________________________ >From Robert Hanson <[email protected]> Sent Sat 8/21/2010 5:45 AM To [email protected] Subject Re: [Jmol-users] show isosurface Oh, cool! print getproperty("modelinfo.models.name (http://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] (mailto:[email protected])> wrote: Just added to Jmol 12.1.8: print getProperty("shapeInfo.isosurface.ID (http://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 (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 (http://p.sf.net/sfu/RIM-dev2dev) __________________________________________________ _______________________________________________ Jmol-users mailing list [email protected] (mailto:[email protected]) https://lists.sourceforge.net/lists/listinfo/jmol-users (https://lists.sourceforge.net/lists/listinfo/jmol-users)
------------------------------------------------------------------------------ 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

