Hello, does anybody know how to know which atoms are being displayed closer to 
the viewer? (in other words, most visible on top of all other atoms). I want to 
automatically label protein residues being observed by the user as (s)he 
rotates the protein.

Sorry for the report! And thanks for your help,
Luciano

      De: Luciano Abriata <luciano_abri...@yahoo.com>
 Para: "jmol-users@lists.sourceforge.net" <jmol-users@lists.sourceforge.net> 
 Enviado: Miércoles, 10 de mayo, 2017 20:40:10
 Asunto: labeling residue by position relative to observer
   
Hello Jmol community,
I searched on google but found no hint on how to do this: given a 3D view in 
JSmol, I want to label the residue (or just CA atom) that is "closest" to the 
viewer (user, or observer) in 3D. (Or even better, maybe label the 5 closest 
residues). This, in a dynamic way such that when the user rotates the molecule 
in any direction, the new residues that are closest to him/her are now labeled. 
I hope the description of my problem is clear enough!

Do you see any way to achieve this? I guess I should access the x, y, z 
positions of the atoms in the frame of the camera? (but how?)

Thanks a lot for your help!
Luciano


   
------------------------------------------------------------------------------
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