Vincent Le Guilloux wrote:
> What I need exactly on that, is to allow the user to hide several
> sub-systems: predicted active sites in my case. For each active site,
> I've a checkbox that allow the user to display and hide it.
>
> So for now, I simply use this script to hide a given pocket:
>
> select pocket# ; cpk off ; wireframe off; isosurface surf# off ;
>
> and the following to display it again:
>
> select pocket# ;cpk 1.5 ; wireframe on ; for displaying.
>
> It works fine, but I'm not sure this is the best way to do :)
>
I admit that the behaviour of "hide" and "display" is not intutitive.
They are designed to work similar to "select".
Once you get used to this you should be able to hide and display
anything you want.
So if you want to change the display of your pocket without changing the
display of the other residues you can do the same as you would do for a
selection ("select selected or pocket#"):
display displayed or pocket#
hide hidden or pocket#
>
> Just a last question:
> Is it possible to retrieve residue names / ID for the current selected residue
> (in order to display them in a text area) ? That is, the user click on
> a button associated with a pocket, and I retrieve amino acid names and
> IDs from Jmol and display it as text in the text area... As far as I
> know it's not, but just in case...
>
Although it is not documented in the interactive scripting documentation
(command "show") you can get the residue information by giving this command:
show residue
It works at least with version 11.6.
Regards,
Rolf
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users