Thank you Bob and thank you Eric too (your example helped me learn that I could 
set timeout inside Jmol scripts!!)
For documentation: I modified a bit the selection into:
select on *.ca and within(8,sz = @{all.sz.min})
So as to label each protein residue only at its CA, and to label not only the 
topmost but also those around it.
(I tried more straightforward things like select on sz = @{*.ca.sz.min} but 
didn't work)
And Eric, regarding the anecdote, actually I wanted to do this for something 
similar. With help from Angel I coupled an eye gazer that uses the webcam to 
track the user's eyes. Then, whatever part of the molecule you look at comes to 
the front (and now its frontmost residues get labeled). It doesn't work very 
well due to the low "resolution" of the eye gazer, but with good light on your 
face you can see the effect coming up!
https://lucianoabriata.altervista.org/jsinscience/jsmolwebgazer/jsmolwebgazer.html
Best
Luciano


      De: Robert Hanson <hans...@stolaf.edu>
 Para: "jmol-users@lists.sourceforge.net" <jmol-users@lists.sourceforge.net> 
 Enviado: Martes, 16 de mayo, 2017 6:56:47
 Asunto: Re: [Jmol-users] labeling residue by position relative to observer
   
"sz" stands for "screen z"; smaller is closer.

select on sz = @{all.sz.min}
highlights closest atom

(sorry,  Eric!)

​Bob

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! 
http://sdm.link/slashdot_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


   
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to