Re: [Jmol-users] labeling residue by position relative to observer

2017-05-16 Thread Luciano Abriata
ge.net Enviado: Martes, 16 de mayo, 2017 17:25:59 Asunto: Re: [Jmol-users] labeling residue by position relative to observer Dear Luciano, Wow! That is amazing! It worked easily for me (MacBook Pro). For people who haven't tried it: Go the link below. It asks permission to use your camera.

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-16 Thread Eric Martz
Dear Luciano, Wow! That is amazing! It worked easily for me (MacBook Pro). For people who haven't tried it: Go the link below. It asks permission to use your camera. Follow simple instructions to calibrate (takes less than one minute). Then whatever part of the molecule you look at rotates

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-16 Thread Angel Herráez
Great solution I just noted this in the documentation (under "functions"): point({x,y,z}, true)gives the screen coordinates {sx, sy, sz} corresponding to the 3D coordinates {x, y, z}. point({sx,sy,sz}, false)gives the 3D coordinates {x, y, z} cooresponding to the screen

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-16 Thread Luciano Abriata
rvista.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

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-15 Thread Robert Hanson
"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,

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-15 Thread Eric Martz
Dear Luciano, Below is a script that selects the frontmost atom as the molecule is rotated by the mouse. It defines a set of 4 atoms, and whichever becomes frontmost is selected. This script can be adapted to run any arbitrary script triggered by one of a specified set of atoms becoming

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-15 Thread Luciano Abriata
hat I want! Luciano De: Angel Herráez <angel.herr...@uah.es> Para: Luciano Abriata <luciano_abri...@yahoo.com>; jmol-users@lists.sourceforge.net Enviado: Domingo, 14 de mayo, 2017 20:15:38 Asunto: Re: [Jmol-users] labeling residue by position relative to observer Ciao Luciano A

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-14 Thread Angel Herráez
Ciao Luciano Although Jmol obviously "knows" the screen-Z position of an atom (used e.g in perspective, fog, slab and depth, rotate best), I can find no command that will retrieve that value. --- El software de antivirus Avast ha analizado este correo electrónico en busca de virus.

Re: [Jmol-users] labeling residue by position relative to observer

2017-05-13 Thread Luciano Abriata
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

[Jmol-users] labeling residue by position relative to observer

2017-05-10 Thread Luciano Abriata
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