Eric, thanks very much for pointing out the inconsistencies in the Jmol
parameters. I took a very close look at the situation and have cleaned
it up considerably. See
http://chemapps.stolaf.edu/jmol/docs/?ver=11.4#Jmolparameters
There are now 129 Jmol parameters that can be SET or used in any way
desired within a Jmol math expression. For example, you can:
print SpinX
spinX = spinX * 2
or
SET spinX spinX * 2
or
SET antialiasdisplay !antialiasdisplay
That is, all the Jmol math stuff is now available for all these
parameters, and the SET command is expanded to accept all Jmol math
operations. There is a short list of parameters for which you cannot do
this:
set echo
set labelAlignment
set labelAtom
set labelFront
set labelGroup
set labelOffset
set labelPointer
set labelToggle
set measurements
These nine settings are more involved than setting just a single
parameter - they are really extensions of the echo, label, and
measurement commands. So it really doesn't make sense to check them
using Jmol math. But you can still do the sort of substitution that was
possible before using @{...} or @variableName just as for any other
expression:
var x = 10;var y=10
set labelOffset @x @y
Quite aside from this, the single-command toggle you were looking for,
Eric, is this:
spin @{!_spinning}
Here you need to use @{} because SPIN is a general command, not SET.
!_spinning is being evaluated to be TRUE or FALSE, then put into the
spot in the command where the command processor expects a TRUE or FALSE.
So I think I'm about done updating the documentation and
variable/parameter business for 11.4. Please let me know if I messed up.
Bob
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users