x = jmolScriptWait("show coord"))
better:
x = jmolScriptWait('print {*}.label("%x %y %z")')
best:
x = jmolEvaluate('{*}.label("%x %y %z")')
or maybe even:
xArray = eval(jmolEvaluate('"[" + {*}.label("[%x, %y, %z],") +
"]"').replace(/\,\]/,"]"))
Angel Herraez wrote:
>Hi all
>
>I want to extract the coordinates data from the applet.
>"write coords" does that, but only for the app.
>I am trying "show" coupled with messageCallback, though the only
>choice I see is "show state", which seems to work but has drawbacks:
>
>1.- I need to activate and deactivate the callback, as it receives
>many other sttuff meanwhile
>2.- I will need to parse the output to gte just the coordinates
>
>So is there any other way, less verbose?
>
>(In case it matters, the model is put in the page using
>jmolLoadInline from a text area, and I want to put the resulting data
>-after the model has been modified- into a text area too)
>
>Thanks for any hints.
>
>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users