Re: [Jmol-developers] myJmol as variable in Jmol.script

2016-05-09 Thread Robert Hanson
Klaus, When you create an applet, it automatically creates a top-level object with the name of your applet. However, you can't do anything with that object until it is at least started to be created. Have you tried any of the html files in the jsmol/ directory? There are plenty of examples of

Re: [Jmol-developers] myJmol as variable in Jmol.script

2016-05-09 Thread Angel Herráez
Hello Klaus I think that it should be possible to do what you want without using eval(), which is usually not recommended by javascript gurus. The variable is indeed an object and not a string, but that is what Jmol expects. There may be a problem when the variable has not been defined

Re: [Jmol-developers] myJmol as variable in Jmol.script

2016-05-09 Thread Robert Hanson
I would put a line alert(name) in that function to see what that variable is. Perhaps it is not defined at the time you are making the call. Also, I don't recommend giving an applet a name like "A" or "B" -- to easy to use a variable that is used by something else. I would suggest "jmolA"

[Jmol-developers] Support for Molpro output broken

2016-05-09 Thread Peter Knowles
Since r20941, output files generated by Molpro are no longer recognised; a simple example is attached. As this commit seems to introduce significant refactoring of the code, I was afraid to have a go myself in finding the problem, but I am certainly happy to put effort into this as necessary.

[Jmol-developers] myJmol as variable in Jmol.script

2016-05-09 Thread Klaus Schaper
Hi everybody, Thanks to Rolf, that did the trick! I successfully converted a little bit of script to the new syntax and the other functions will hopefully cause no problems. However, one more problem remains. After converting the script to the new syntax using 1)