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; //
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
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
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
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"
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)
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"};
>
>
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
10 matches
Mail list logo