nglviewer / ngl

WebGL protein viewer
http://nglviewer.org/ngl/
MIT License
657 stars 168 forks source link

Focus camera on selection #1027

Open gbayarri opened 4 months ago

gbayarri commented 4 months ago

Hi, I would like to know if there is some way to "brig to front" a selection after doing an autoView. I have this representation after autoView:

Captura de pantalla 2024-02-21 a les 12 24 00

But as you see, there are some residues in between the camera and the selected one. The point is if there is possible to rotate / translate the structure after (or during) the autoView for having the desired selection always as close to the camera as possible:

Captura de pantalla 2024-02-21 a les 12 24 33

Thanks!