I'm trying to replace the use of the PMESH command with the new DRAW command and have run into a problem. After creating two objects (planes), trying to display just one causes both to be shown. I've copied the relevant code below, though I get the same result from the applet console as well. Am I missing something in the DRAW command?
I'm using the most recent version of the applet (10.9.48) and it behaves the same on Windows, Mac and Linux.
An example page is at http://www.otterbein.edu/home/fac/dnhjhns/jmoltest/water.html.
Dean Johnston
===================================
<script type="text/_javascript_">
script = "load molecules/water.mol; draw plane1 PLANE {1.0 1.0 0.0} {1.0 -1.0 0.0} {-1.0 -1.0 0.0} {-1.0 1.0 0.0}; color $plane1 translucent red; draw $plane1 off;"
script = script + "draw plane2 PLANE {0.0 1.0 1.0} {0.0 -1.0 1.0} {0.0 -1.0 -1.0} {0.0 1.0 -1.0}; color $plane2 translucent green; draw $plane2 off;"
jmolApplet([400,300], script);
</script>
<script type="text/_javascript_">
jmolCheckbox("draw $plane1 on", "draw $plane1 off;", "plane 1");
</script>
<script type="text/_javascript_">
jmolCheckbox("draw $plane2 on", "draw $plane2 off;", "plane 2");
</script>
------------------------------------------------------------------------- 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

