Re: [Jmol-users] Callback to use unit cell lengths in jmolScript ?

2007-05-29 Thread Bob Hanson
Alan, It seems to me the most sensible thing to do is use Miller plane notation "hkl" instead of "plane" for that WITHIN definition. display within(-999,hkl,{0,40,0}) as long as you can use crystallographic coordinates instead of Cartesian. Alternatively, you can define the plane using thre

[Jmol-users] Callback to use unit cell lengths in jmolScript ?

2007-05-29 Thread Alan Hewat
This must be a simple javascript problem, but I am having trouble with it:-) In my slider display I execute a jmolScript to limit the displayed volume: jmolScript( 'display within(-999,plane,z='+z1+') and within(999,plane,z='+z2+') and ...etc where z1, z2 etc are javascript variables proportional