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 spinY 10; set 
spinZ 0; spin on');
}

That means every time a model is loaded, the spin is applied

Another way is to pack everything in one line:

1- remove your "src"
2- add a script:

Info = {
  script: "load mdl/<?php echo $myMolicule ?>.txt; set spinFps 30; set spinX 
10; set spinY 10; set spinZ 0; spin on;"

·
 Dr. Angel Herráez
 Biochemistry and Molecular Biology,
 Dept. of Systems Biology, University of Alcalá
 E-28871 Alcalá de Henares  (Madrid), Spain


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to