The best way to get it would be:
var jsX = jmolEvaluate("script('show isosurface')")
On Tue, Nov 23, 2010 at 12:49 PM, Alexander Rose <
[email protected]> wrote:
> Hi,
>
> I tried to get the jvxl data for an isosurface as a string via Jmol.js. I
> used 'show isosurface' and at first jmolScriptWaitAsArray which does not
> quite work and then jmolScriptWaitOutput which works fine.
>
>
> jmolScriptWaitAsArray returns an array whih includes the jvxl data but all
> double quotes seem to be replaced with two single quotes, just replacing
> them with double quotes does not work, because the encoded data can (and in
> my case did) 'real' subsequent single quotes.
>
> jmolScriptWaitOutput returns the jvxl data with correct quotes.
>
>
> I also tested it for the underlying calls to the applet (scriptWait and
> scriptWaitOutput) which gave the same results as above, so the different
> behavior is rooted in the applet not in Jmol.js
>
>
> Best
> Alexander
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-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
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users