> I assumed the spin problem might be related to zoom/move stuff, but with
not related > difference between 10.2 and 10.9.83/5. I had left in a rotate command to > try and get the molecule arranged the orientation I wanted it at the start > and it ends with 'rotate x -90' which I now see must trigger 10.983/5 to > spin in the x direction when a 'spin on' command is next used. I don't think so.... I was pretty careful to make sure these don't mix. Rotation has no "memory" like this; there is no mechanism I'm aware of to have a rotate command carry over into a spin. There are three kinds of spin: internal fixed oldstyle What you are using is "oldstyle". When you say "spin on" you dictate that Jmol should use the old style, and even if you had used the new sort of spinning (spin x 30;spin y 30;). It should work exactly as it has in the past. If it isn't I'd like to check the script so I can see where the bug is, if there is one. Apparently > 10.2 still kept going with y direction as the default for a 'spin on' > command? All is well now. > > An script: > var presclearSpt = "wireframe off; spacefill off;\ > cartoon off; rocket off; trace off; backbone off;\ > model 1;\ > rotate z -97;rotate y -5;rotate x -90;\ > translate x 3;zoom 110;\ > center all;\n"; > > var rnaandproteinscript = "select all;" + presclearSpt + > "select protein,nucleic;\ > cartoon;\ > select protein;\ > color cartoon [Xcbbe8a];\ > select nucleic;\ > color cartoon [Xfd0162];\ > spin on;\n"; should spin around the fixed vertical axis, right? But, not necessarily... This script is not well advised. "spin on" is indetermininate; it depends upon what sort of "set spin" setting you have done in the entire life of the applet, not just since the last file was loaded. For example, if the user had used the menu to do some spinning, then "spin on" here will likely do something completely different than you expect. If you want to add predictability, you should do something like: set spin x 0; set spin y 10; set spin z 0; spin on That is, set all three; don't rely on any defaults. Bob > > > Thanks, > Wayne > > --------------------------------------------------------------- > > >> I had to revamp all the spin and zoom commands when I converted from >> 10.2 >> to 10.9.83. >> a. For some reasons the spin would go into spinning in a different >> orientation (x it seemed) in a second script in 10.9.83 when it had been >> spining in the y correctly in the first script. In 10.2 both spun in y >> direction like I had written things. To get around this I had to add >> 'spin y 7' in front of each 'spin on' command to get it to snap back to >> spinning in a consistent manner. > > Please send script/molecule examples. It is true that spinning is done > somewhat differently in 10.9.83 > > spin on #by default rotates in y direction > spin off #terminates spinning > set spin x 20 > set spin y 10 > spin on > > these all still work as in 10.2 in my hands. > > What is different is that when a new model is loaded, spin is turned OFF. > I'm not aware of any other changes. > > But there are still some oddities with this "set spin x|y|z" business. For > example, the settings stay set and there is no way to get back to the > defaults except by reloading the page/restarting the application. This is > the way it was in 10.2 and still is. Mostly I recommend not using "set > spin" and instead using > > spin x deg > spin y deg > spin z deg > > which are more predictable. > > But you tell me precisely what 10.9.83 is doing wrong, and I'll take a > look. > > >> >> b. The 'move' command seems super sensitive in 10.9.83 now when zomming >> in >> or out. I had to reduce the degree of zoom about 10 fold when >> converting >> between 10.2 and 10.9.83. > > That's a bug in 10.9.83. Thanks for spotting this; sorry if you now have > to change those moves back. It's fixed for 10.9.85. I should have caught > this; I always use moveTo instead of move, and it goes through a different > routine. Very sorry! > > > Bob > > > > > > > > > ------------------------------------------------------------------------- > 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-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jmol-developers > ------------------------------------------------------------------------- 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-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
