Hi,

This is probably a dumb question, but I've gone too long without figuring
this out. I'm using Perl, but I assume this would apply to any language
other than Javascript where one cannot simply access Jmol's data structures:

How do I get data out of Jmol and into my script?

Sending commands is not problem, I just print to the command line. But,
when I want to know values (e.g., I send "show ORIENTATION" and need to
know the results), is there a simple way to do that?

I already kludged this once by writing a jmol script on the fly, which
saves data to a file, and then my Perl script reads it. E.g.:

======================
load $inputFile;                                     # a molecular model
x = getProperty("boundBoxInfo.vector");  # a jmol native command that
doesn't work in Perl
write VAR x "$output_file";                     # the jmol write file
command
=======================

That sort of offends the senses, but I guess I could abstract it into a
function which would make it fairly transparent for Perl to use the
getProperty commands whenever I want. Perhaps the main concern there would
be that the getProperty list of commands seems pretty short compared to the
overall list of commands. I wonder how much data there is that I can't
access that way.

It won't surprise me if the answer is "rewrite it in javascript." I was
just trying to avoid that since I'm more comfortable in Perl.

Sincerely,
James Ryley, PhD, Patent Agent
SumoBrain: Intellectual Property Solutions & Data
AcclaimIP <https://www.acclaimip.com/> |
FreePatentsOnline.com<http://www.freepatentsonline.com/>|
SumoBrain.com <http://www.sumobrain.com/> |
BioMedSearch.com<http://www.biomedsearch.com/>

This communication is confidential and may be subject to legal privilege.
Nothing contained herein should be construed as legal or patenting advice.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to