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