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

2016-06-03 Thread Angel Herráez
Hi Klaus Go to http://chemapps.stolaf.edu/jmol/docs/ and search for "rotationRadius" You will see there is "set rotationRadius" therefore you can try show rotationRadius and it works! Examples of use: show rotationRadius // rotationRadius = 20.94923 rr = rotationRadius; print rr; //

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

2016-06-03 Thread Klaus Schaper
Thanks to Robert, that did the trick „show orientation you will see a parameter "rotation radius" You can set that to a new number, then disable zoom. It sets the magnification for "100%".“ However, is there an easy way to get the rotationRadius only? I want to read it out

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

2016-05-22 Thread Robert Hanson
yes, if you check show orientation you will see a parameter "rotation radius" You can set that to a new number, then disable zoom. It sets the magnification for "100%". ​ -- Mobile security can be enabling, not

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

2016-05-10 Thread Klaus Schaper
Hi folks, thanks again for your support! Using onClick="KS_AtomeHervorheben(A" instead of onClick="KS_AtomeHervorheben('A')" did the trick and it is definitely better than using eval. And thanks to your tip Angel I am now able to switch between Jmol and Jsmol easily. I had seen this

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] 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)

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

2016-05-07 Thread Rolf Huehne
Am 07.05.16 um 10:22 schrieb Klaus Schaper: > Hi everybody, > > I just decided as recommended to switch from jmolScript to the modern > Jmol.script syntax. > > I create to applets with the following function: > > function KS_ErzeugeAppRechteck(Ziel) > > { > > var Info = {src: "Ethan.xyz"}; > >

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

2016-05-07 Thread Klaus Schaper
Hi everybody, I just decided as recommended to switch from jmolScript to the modern Jmol.script syntax. I create to applets with the following function: function KS_ErzeugeAppRechteck(Ziel) { var Info = {src: "Ethan.xyz"}; Info.j2sPath