JmolScript:

Var x = getProperty("shapeinfo.isosurface[1].jvxlInfo")

JavaScript:

var x = jmolGetPropertyAsString("shapeinfo.isosurface[1].jvxlinfo")

This returns an XML structure like this:

<jvxlSurfaceInfo
    cutoff="0.0"
    isCutoffAbsolute="false"
    pointsPerAngstrom="1.9167668"
    nBytesData="79539"
    isXLowToHigh="false"
    nSurfaceInts="8316"
    nBytesUncompressedEdgeData="23673"
    nBytesUncompressedColorData="47348"
    precisionColor="true"
    colorMapped="true"
    dataMinimum="4.0553784"
    dataMaximum="27.429241"
    valueMappedToRed="4.0553784"
    valueMappedToBlue="27.429241"
    xyzMin="{-4.797 -2.466 -9.122}"
    xyzMax="{25.984001 22.887001 21.53}"
    approximateCompressionRatio="#RATIO#:1"
    jmolVersion="Jmol 12.1.4_dev  2010-08-06 18:30">
</jvxlSurfaceInfo>

That should be everything you need.

Bob


On Tue, Aug 10, 2010 at 7:25 AM, P.Canepa <[email protected]> wrote:

>
> Dear all
>
> I'd like to print in two separate textboxes  the  mapped data range  min
> and max (see below) when I plot a new map with Jmol.
> isosurface1 created with cutoff=0.02; number of isosurfaces = 1
> color range 0.0 0.3; mapped data range -0.06706063 to 0.88033277
>
> Do you have any suggestion? I thought it was possible by using the
>  jmolGetPropertyAsString(), but I cannot figure out he way to implement it!
> Thanks a lot,  Piero
> --
> Please consider the environment before printing this e-mail.
>
> Pieremanuele Canepa
> Room 104
> Functional Material Group
> School of Physical Sciences, Ingram Building,
> University of Kent, Canterbury, Kent,
> CT2 7NH
> United Kingdom
>
> e-mail: [email protected]
> mobile: +44 (0) 7772-9756456
> -----------------------------------------------------------
>
> ------------------------------------------------------------------------------
> 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
>



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

Reply via email to