Marius,

First, generally, use JmolViewer interface. It's in org.jmol.api and it
summarizes the specific Viewer methods that are for public use.  There are
examples as well, which you now have found, so that's good.

Generally you do not want to be sending "hundreds or thousands of script
commands" to Jmol, but if you do, consider whether it is important to have
them synchronous or asynchronous. Hard to believe you need them to be
synchronous, but if you do, then you won't be using the Queue thread at all
anyway. Either way, it is much better to start a StringBuilder instance,
append all your  commands, separated by semicolon, and then send that
object's toString() result to run one script.

Sounds like you have gone a long way figuring this out on your own. I'm
impressed! Hope this is helpful relative to your deadline. If not, keep
pressing me.

Bob




On Sat, May 11, 2013 at 2:18 AM, Marius Watz <[email protected]> wrote:

> Hi Angel,
>
> I'm happy you enjoyed my sketches so far. I realize my efforts are both
> unscientific and surplus to requirements in relation to the Jmol
> project, but that's art for you. The project is for a public art
> commission to be shown on a LED video wall in a college building in
> Oslo, Norway. The deadline only weeks or days away, so I'll post final
> results soon.
>
> I'd be happy and honored to have the final project mentioned on the Jmol
> wiki somehow.
> My sketch renderings has attracted a modicum of attention in the online
> community of artists working with code, it'd be nice to imagine a new
> audience being exposed to Jmol as a result.
>
> My final documentation will make explicit references to Jmol, and I am
> always conscientious to provide links and proper credits in my
> documentation whenever I use existing code. In the spirit of open
> source, I also plan to post a limited version of the code framework I
> develop on GitHub as an example for other coders.
>
> Feel free to email me privately if you want to discuss featuring the
> project on Jmol's official sites, I'd be happy to provide you with
> images and background info.
>
> Thanks, Marius
>
>
> On 08-May-13 07:53, Angel Herráez wrote:
> > Hi Marius
> >
> > That looks terrific!  A great demonstration of Jmol abilities.
> >
> > I will let others (Bob) reply to your technical questions.
> >
> >
> >> - Error handling
> > Probably by using debug levels and callbacks
> > http://chemapps.stolaf.edu/jmol/docs/#setdebugging
> > http://chemapps.stolaf.edu/jmol/docs/#setcallback
> >
> >
> >> - Script status checking
> > Callbacks
> >
> >
> >> - Precise repaint control so that repaint will wait for scripts that I
> >> executed every frame to produce animation
> > See
> > http://chemapps.stolaf.edu/jmol/docs/#refresh
> > (not what you want)
> > And maybe also "set repaintWaitMs n", look for it under
> > http://chemapps.stolaf.edu/jmol/docs/#setmisc
> >
> >
> >> Confounded by the lack of documentation
> > http://chemapps.stolaf.edu/jmol/docs/
> >
> > I know it is not very friendly, but there's a lot of information
> > there. The wiki is more friendly, but far from exhaustive.
> > We have many users, not so many developers and documenters.
> > Volunteers are always welcome tro contribute.
> >
> >
> > Finally, I think it would be great to share your production. Would
> > you mind that we link to your Flickr page? I could add a link to the
> > presentation mode in the Wiki, maybe in Home page > About Jmol > Jmol
> > Art -- is that a suitable term?
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Learn Graph Databases - Download FREE O'Reilly Book
> > "Graph Databases" is the definitive new guide to graph databases and
> > their applications. This 200-page book is written by three acclaimed
> > leaders in the field. The early access version is available now.
> > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> > _______________________________________________
> > Jmol-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
> >
>
>
> --
> //////////////////////////////////////////////////
> Marius Watz
>
> New web site: http://mariuswatz.com
> Silk screen prints: http://randomnumber.nu/?cat=21
> //////////////////////////////////////////////////
> http://twitter.com/mariuswatz
> http://twitter.com/generatorx
> http://flickr.com/photos/watz
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to