oops - I misspoke --
I said:
you need to insert the command
file 0
which makes all the files you loaded "displayable" (but not displayed)
BUT I was incorrect.
"file 0" actually does display all the files loaded.
So instead say
so say:
jmolApplet(300, 'load "fileset" "1BZ8.pdb" "1C26.pdb"; file 0;
display file=2;');
the command
display file=2
is what displays ONLY file 2.
Below is a "reprint" of a complete explanation that Bob H wrote to
the list yesterday (in response to my questions).
Frieda
------------------------ reprint ------------------------
Bob said:
The logic is supposed to be:
"display x" hides all atoms except x.
"hide x" displays all atoms except x.
To this we add:
display xxx # display ONLY x
hide not xxx # same thing!
display not xxx # display everything but x
hide xxx # same thing!
display hidden # toggle shown for unshown
hide displayed # same thing!
display displayed and not xxx # remove xxx from the display --- what
you want here
hide hidden or xxx # same thing!
display displayed or xxx # add x to the display --- also what you
want
hide hidden and not xxx # add x to the display
So just don't use "hide" if it confuses you. It is never necessary.
Thinking in terms of what is displayed gets you anything you want. The
key for this situation is to use "displayed" as part of that
checkbox item.
[x] file 1: [x]"display displayed or file=1" [ ] "display
displayed
and not file=1"
[x] file 2 : [x]"display displayed or file=2" [ ] "display
displayed
and not file=2"
[x] file 3 : [x]"display displayed or file=3" [ ] "display
displayed
and not file=3"
-------------------------------------------------------------------------
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-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users