Miguel wrote:
The problem is that the animation is requiring callbacks. I'm using the message callback "script completed" as a way to ensure that one script runs only after another completes.
1. Is there a better way to do this? (I tried first just to use setTimeout()s but that led to some very strange script behavior.)
I don't fully understand.
Q: Is it the case that you want some type of 'event notification' when the animation completes?
I'm using the term "animation" liberally here. There aren't any frames. Just one model. I'm driving it directly, step by step. It's each little script command that I have to ensure completes before I send the next one. It seems to work; but I was surprised I had to use callbacks and trap that "script completed" message. Just using setTimeout() totally messed up.
2. Am I right that some platforms can't use the callback mechanism?
I think that callback works on all platforms.
I also think that callbacks are not 100% reliable on *any* platform.
So, my question. Any alternative in this case?
3. I'm running into a bond-number limitation. Miguel, can you remind me what the case is on that?
Maximum bond order of 20
That's for all file types, I presume. OK. I can live with that.
4. The program that generates these graphs is outputting to the mol file format so that I can specify bonding. That format has a limitation of 999 bonds. But these graphs get pretty complex pretty fast, and I'm interested in trying some larger systems. Should I switch to PDB format? If so, what's the absolute simplest set of lines for this?
You can use PDB files with CONECT records to explicitly specify all bonds.
Anybody have an example of a NON-biomolecular PDB? Just a simple file that has atoms and bonds? Just VERY simple? Maybe, caffeine.
Bob
-- Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users