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; //

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

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"

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"}; > >