Someone submitted a bug report saying:

> I'm not sure if this has been already implimented or
> not, but is there a way to change the unit of
> measurement displayed when showing things like
> distance, through use of javascript and NOT just the
> right-click menu?

Everything in the applet popup menus is implemented as scripts.

> If there's a way to do this, please
> let me know.

Actually, I *cannot* let you know because you submitted this
anonymously and you did not provide your email in the bug report ;-)


The following script commands will control the measurement units:

set measure picometers
set measure nanometers
set measure angstroms


You can set these in JavaScript by using the the Jmol.js JavaScript
library you can send this by saying

 <script>
   jmolScript("set measure picometers");
 </script>

These script commands are related and are also interesting:

font measure 24 sanserif
color rubberband yellow
color measure turquoise


Miguel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to