Hi Mark
It seems that loading the molecule resets the spin state, so your script is
forgotten. (I did not anticipate this behaviour)
Maybe you can do it this way:
Info.loadStructCallback = "loadedMol";
loadedMol = function() {
Jmol.script(jmolApplet0, 'set spinFps 30; set spinX 10; set spi
Mark, your code looks good.
You could also use the "script" parameter in Info to set up the commands
you need
Like this:
Info.script = "set spinFps [frames-per-second]; set spinX
[degrees-per-second]; set spinY [degrees-per-second];
set spinZ [degrees-per-second]; spin on; "
---
Mark,
I'm going to guess that you might be using the Lite "commands" to do this. You
need to do use Jmol Script commands if you are not using Lite any longer:
set spinFps [frames-per-second]
set spinX [degrees-per-second]
set spinY [degrees-per-second]
set spinZ [degrees-per-second]
Otis
--
Ot
3 matches
Mail list logo