You would embed Jmol.jar in some other program, then create a JmolViewer
object and call JmolViewer.script(...), for instance. If you wanted the
Jmol script to wait while it called your Java method, then use the MESSAGE
command and create a callback for that for your program. The basic idea is
illustrated in /examples/basic/org/jmol/Export.java in the source
distribution.
On Tue, Sep 10, 2013 at 3:26 PM, jiayi.zhou <jiayi.z...@mun.ca> wrote:
> Hi, I have a piece of java codes which can do some changes to the
> structure file. What I want to do is to write a Jmol script, which can read
> in a structure file and then call my piece of java codes to make some
> changes to the structure file and then display the structure in Jmol. Can
> any Jmol script commands import and run the export java codes?
>
> Thank you.
>
> --
> Aiden/Jiayi Zhou
>
> Office Tel: 709-864-4891
> Master Candidate
> Dept. of Computer Science
> Memorial University of Newfoundland
> St. John's, NL, Canada, A1B 3X5
>
> P I*f you decide to print this...*
>
> **
>
> * then you'll need to find a place to file it...!*
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Larson-Anderson 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
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users