Bob,

The _modelNumber variable is really useful -- in
fact a page I'm writing at the moment for browsing
through multi-conformer, multi-molecule files
will probably end up using it extensively. Also
the 'if' statement.

Just when I though I could stabilise on 11.0 for a
while!

Thank you again,

Dave

> IF
> --
> 
> Braces here mean "number of atoms" matching that atom expression. Simple 
> comparisons are possible:
> 
> if {_N} > {_O};message "There are more nitrogens than oxygens";
> 
> or more complicated ones as well. It is just using the same syntax 
> engine as SELECT:
> 
> if !({_N} > 3 && {_O} > 3);
>     select _O;
>     color yellow;
> else;
>     select _N;
>     color yellow;
> endif;
> 
> if (minBondDistance < 0.6);
>     minBondDistance = 0.6;
>     connect;
> endif;
> 
> 
> That sort of thing. No string omparisons yet, just numeric and boolean.
> 
> 
> 
> ECHO and MESSAGE
> ----------------
> 
> echo %{variableName}
> 
> replaces the variable with its set value. I think I might add a few more
> of these that would change automatically. The one I added was 
> "_modelNumber".
> So, for example, if you had an animation, and you
> 
> set echo top left
> echo "Model %{_modelNumber}
> animation on
> 
> you will see that number change as the frames change.
> The idea is to make some of this echoing of variables less 
> JavaScript-intensive.
> 
> 
> echo %{(atom expression)}
> 
> If the "variable name" is in parentheses inside the braces, then it is 
> instead
> evaluated as an atom expression, and the number of matching atoms is 
> returned.
> This will update automatically. For example:
> 
> slab on
> echo "# clickable atoms: %{(clickable)}"
> 
> changes as you change the slab with the mouse (CTRL-SHIFT-LEFT-drag).
> 
> I decided NOT to allow this capability for atom labels, because it would 
> be rather
> intensive during rendering if there were many of these to check.
> 
> 
> Thoughts?
> 
> Bob
> 
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
-- 
  Dave Evans
  [EMAIL PROTECTED]
  http://www.davidaevans.org


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to