Two popular options are now even easier to implement. See 10.x.44. http://www.stolaf.edu/people/hansonr/jmol/test/proto/new.htm
http://www.stolaf.edu/people/hansonr/jmol/test/proto/draw.htm Dynamic callback function definition ------------------------------------ There is no longer any need to pre-specify callbacks when writing the applet to the page. Just have the function present, and then specify it using set messageCallback "myFunctionName" To turn off a callback, use "none" instead of a function name: set pickCallback "none" similarly: set hoverCallback "alert" set animFrameCallback "animationChanged" set loadStructCallback "fileLoaded" It's as simple as that. Of course, you can do this in the script you specify initially in the jmolApplet() call. Note that the first parameter of all callbacks is the applet ID. If "alert" is used, which only allows for one parameter, this first parameter is not delivered. Rather than just sending this ID, the second parameter -- the main message -- is sent instead. Dynamic draw object definition ------------------------------ Want a curve or a curved arrow, but you don't know how to define it exactly? Easy enough to get the arrow in the first place: draw arrow1 ARROW {1 1 1} {2 2 2} (atomno=3) Still, that may not be quite right. Just use set picking DRAW All of the key points are highlighted. Move them around until they are the way you want them by holding down the SHIFT key while you drag them with the mouse. When you are ready, use show DRAW to show the command that would be used to create this particular draw object. Clip it out and you have your arrow! -Bob Hanson ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

