Jmol users -- new features in 11.6.
In fixing a few things, I ended up expanding some functionality as well.
Most notably, "set echo on" did nothing, because "set echo off" actually
deletes an echo. So that's an inconsistency with other object-based
"OFF" commands. (isosurface, lcaocartoon, pmesh, draw -- all these use
"off" to just hide the object, not delete it.)
SO, some new syntax. Nothing changed in what was there, but I will be
changing the documentation to emphasize a better way of doing it. The
new commands syntax includes
HIDE $xxx
DISPLAY $xxx
DELETE $xxx
COLOR $xxx ....
where $xxx is any object ID from a draw, echo, isosurface, pmesh, or
lcaocartoon.
Note that $xxx can have wild cards at the beginning, end, or both:
select {2-3}; draw ramachandran; delete $plane*
delete $*pz
select *; lcaocartoons "pz"; color $*_1_pz* red
draw pointgroup; hide $*; display $*C2*
Note that one of the nice things about these commands is that they work
across object types. So, for example,
delete $*
deletes ALL objects - echo text and images, draw objects, isosurface --
all of them.
Rolf brings up the point that the hide/display are not like for atoms --
in this case they act ONLY on the specified objects. That could be
confusing. But that's because one cannot select objects. The reason
hide/display of atoms work en-mass, in an absolute sense, is that that's
how restrict/select work. Here we don't have that issue. In any case,
I'll get that in the documentation.
Now, to deal with the inconsistancy with "set echo OFF" doing a delete
but "isosurface off" everywhere you could use "on" for an object, you
can now also use "display" or "displayed", and anywhere you could use
OFF to mean "just hide it, don't delete it", you can use "hide" or
"hidden". So then for objects, HIDE, DISPLAY, and DELETE form a
generally useful trio of commands. This, in the end, will make far more
sense:
isosurface i1 molecular
hide $i1
display $i1
color $i1 translucent blue
isosurface i1 hide
isosurface i1 display
set echo myecho {atomno=3}
set echo myecho "testing"
set echo myecho hidden
set echo myecho displayed
hide $*echo
That sort of thing.
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users