Spinning is far more complicated in Jmol 11+ than in earlier versions or in Chime. In particular, the capability to spin around internal axes makes spinning very much a characteristic of the model loaded. When I worked on defining the state of a model, it became clear to me that all the spinning should be model-specific. If it turns out to be a real problem, we can look at it again, but this is one place where I just felt we had to make a change. If I forgot to bring it up in discussion, that's my mistake. The fix for websites is simple -- just issue the spin command after the model is loaded.
Perhaps it's my preference showing up here in that I happen to be particularly annoyed by websites that start models spinning. Certainly this behavior is open for discussion. [One of these days I need to write a list of which settings are persistent / applet-associated / retained across models and which ones are nonpersistent / model-associated, this always raises doubts on me] Yes, this was a BIG issue when I went through and brought all the settings together in one place. (A few stragglers exist.) If you "show state" you will now see pretty much all of them. Persistent ones are listed prior to the "load" command. They include: lighting: background [x000000]; set ambientPercent 45; set diffusePercent 84; set specular true; set specularPercent 22; set specularPower 40; set specularExponent 6; bonding: set autoBond true; set forceAutoBond false; set percentVdwAtom 20; set bondRadiusMilliAngstroms 150; set minBondDistance 0.4; set bondTolerance 0.45; set defaultLattice {0.0 0.0 0.0}; set allowEmbeddedScripts false; set defaultLoadScript ""; The next set, listed just after the file load are also persistent; they are listed after file loading because file loading ITSELF is not dependent upon them or because they might have been changed since the current file was loaded. # settings; set defaultcolorscheme "Jmol"; set showmeasurements true; set showhydrogens true; set perspectivedepth false; color carbon [xff0000]; set axesUnitcell; Everything else -- orientation (including spinning), colors, sizes, and visibility of objects and models, labels, and atom selection -- are all cleared when a file is loaded. The objective is simply to provide a well-defined reproducible state, which is now possible in Jmol. Spinning definitely mess that up if it is occuring when a file loads, because the effect of, say, "rotate x 10" is then dependent upon exactly how much time it takes to load and render the model and get it spinning. By resetting spinning, we have a reproducible state upon loading. Note that spinning is the very LAST operation carried out in a setting of the state. One possibility is that in the specific case of applets, if Chime-like spinning is set prior to any file load, we could carry it over. But that would have to be a special case. Bob Angel Herraez wrote: >>This is intentional. All spin states are now reset upon file load. >>If that is a major problem, let me know. >> >> > >This will break existing webpages --although they can quite easily be >fixed--. >The way I see it, the spinnig is a matter of page design more than >model-specific, according to what is desired for the user's first >impression (e.g., appreciate the 3D nature of the model even before >being informed of the interactivity possibilities). Also, not only >the webpage author, but each user may prefer to have models spinning >or not and that behaviour to be retained for new models. > >I would hence prefer the old way to be maintained. But maybe I'm just >just used to it for historical reasons. And there may be technical >reasons for your change in behaviour. > >[One of these days I need to write a list of which settings are >persistent / applet-associated / retained across models and which >ones are nonpersistent / model-associated, this always raises doubts >on me] > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier. >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Jmol-users mailing list >Jmol-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/jmol-users > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users