I do it like this:
$JMOLb .= "<script>
jmolCheckbox(\"select 1.1; spacefill off; backbone off; cartoon; isosurface
SAS_$nmod off; isosurface SOLV_$nmod off;\", \"select 1.1; wireframe off;
cartoon off; spacefill off; backbone off; label off; isosurface SAS_$nmod
off; isosurface SOLV_$nmod off;\", \"SHOW/HIDE\", \"true\");
</script><br>";
I actually want that everything disappears when unchecking, but I do want
the last state of the protein (display, residues highlighted and labels) to
appear when checking, not just the default cartoon...
2011/7/27 Rolf Huehne <[email protected]>
> On 07/27/2011 11:34 AM, Daniel Carbajo wrote:
> > Hello again everybody,
> > I am thinking of doing one thing with Jmol that I do not even know if is
> > possible.
> > I have a Jmol window where I show one protein in cartoon. Beside it there
> is
> > a table with residues of interest that can be highlighted in wireframe
> with
> > a label. Below the Jmol window there is one checkbox to show/hide
> (checked
> > by default) the protein and a drop-down menu to change its display
> (cartoon,
> > spacefill, trace...).
> > The problem is the following: let's say I have the protein in dots with 3
> > residues highlighted and labeled; the way I have the page now, if I
> uncheck
> > the show/hide checkbox, it hides everything correctly, but if I check it
> > again, I can only show the protein in cartoon and with no residues
> > highlighted and no labels (I miss the display and the residues
> highlighted
> > and labeled); so instead of showing the protein in cartoon and with no
> > residues highlighted and no labels, I would like to show it "as it was in
> > its last state before hiding it", is there a way I can get this? I cannot
> > think of any solution, I do not even know if it is actually possible...
>
> Daniel, how do you actually do the show/hide process?
>
> If you use the 'restrict' command then rendering settings and labels
> will be gone.
>
> If you would use the 'display'/'hide' commands all rendering settings
> and labels should be preserved.
>
> See the Jmol scripting documentation for details:
>
>
> http://jena3d.fli-leibniz.de/ImgLibPDB/Jena3D/doc/jmol_scripting/index.htm#display
>
> Regards,
> Rolf
>
>
> ------------------------------------------------------------------------------
> Got Input? Slashdot Needs You.
> Take our quick survey online. Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users