Hi Chuck, have you tried « get property stateInfo » ? It should restore everything including orientation, zoom, etc… Paul
Le 31 janv. 2014 à 16:32, Charles Harrison Shubert <cshub...@mit.edu> a écrit : > Hi, > > When my users open my app, I'd like for JSmol to be in the same state that > they left it in. My users can generate quite a bit of JSmol script. > Currently, I'm using the browser's localStorage to store app state in a JSON > object. > > What would be the preferred way to extract JSmol state including rendering, > orientation, zoom, etc, to save for my user's next visit? I can imagine > accumulating the user's JSmol script, saving it, and using it to restore > JSmol, but I'm not sure how to save the orientation. > > I'd appreciate any thoughts that you have on this. > > Thanks, > > --Chuck > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users