On Fri, Aug 20, 2010 at 6:56 PM, Eran Hodis <[email protected]>wrote:
> Hi Bob,
>
> I'm interested in saving all the isosurface data in a given Jmol state as a
> jvxl file. The idea is to not only save the Jmol state for later recall, but
> also save all necessary isosurfaces so that when the state is recalled the
> user does not have to wait for surface calculation.
>
> I can issue the command "show isosurface" and then save that as a jvxl, and
> that works great but only if there is only one isosurface. If there are
> several isosurfaces, I think I only get the most recently created
> isosurface. How can I access the isosurface data for all existing
> isosurfaces, assuming I don't know their names?
>
>
Hi, Eran--
I think you could just use write isosurface, not show isosurface. But let's
see...
You can get the names of all isosurfaces using
isosurface list
And you can write any particular one of them by using
isosurface ID "foo"
by itself (which "switches" to that isosurface) followed by
write "foo.jvxl"
Also, for a more programmatic way of getting isosurface information, you can
use
Var n = getProperty("shapeInfo.isosurface").length
and then
Var id = getProperty("shapeinfo.isosurface[1].id")
Var id = getProperty("shapeinfo.isosurface[2].id")
etc. up to n
--Bob
> Eran
>
>
> ------------------------------------------------------------------------------
> 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