Hello Jmol community! Is that even what you call them?
I am using Jmol in a web page with the javascript interface; I needed to get the current value of a few state variables to initialize the controls that I created to match the state of the molecule loaded in the Jmol applet. Currently, I do a show state command and then parse the output to get what I need but my app will break if the layout of the "show state" response ever changes. Recent activity on this list has highlighted a facility much more suited to my needs. Apparently I can poll state variables directly for exactly the information that I want (and no more) with the certainty that my app won't break in future releases of Jmol. An example of such a state variable that has been discussed recently is "_spinning". I have searched to find documentation of this state variable in particular, hoping to find a list containing the name and description of every state variable but have not been able to find such a thing. Right off the bat, I would be looking to know the spin rate on each axis and the value for wireframe, spacefill and dots but over the long haul, I am sure that there are may more variables that I will want to reference. Where can I look to see what variables are available? Also, Is there a page that gives a javasript interface example of how to access them? If not, I am thinking that Angel's demonstration of slider controls (see: http://biomodel.uah.es/Jmol/sliders/wzorn/slab-slider.htm ) would be a place to put it although his demo pages are not part of the "Offical" Jmol doc so perhaps there is a better place. The issue that I have with the slider demo is that it always starts at 80% instead of the current slab value, either from the way that it was loaded, the way it was left from the last use of the slider, or the way it was left using menus or the console. By polling the status variable, one can keep the slider in sync with the state of the applet. As I have mentioned, I have done it but it is a clumsy solution. Using state variables such as _spinning would be much cleaner if I can find the list. Thanks in advance. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users