Foros: Open Discussion (Thread #36368)

Selecting a residue & Centering View (2015-01-14 04:03 by adean #75230)

Is there a way to selecting a specific residue in the PDB file and centering the view and zooming in on it? I would like to give the users several buttons that they could press and move between various residues in the structure & I cannot work out how to do it.

Thanks for your help!

Re: Selecting a residue & Centering View (2015-02-23 18:01 by biochem_fan #75571)

> Is there a way to selecting a specific residue in the PDB file and centering the view and zooming in on it? I would like to give the users several buttons that they could press and move between various residues in the structure & I cannot work out how to do it.
>
> Thanks for your help!

I am very sorry for missing your post.

You can use zoomInto(atomlist) function. atomlist is an array of
atom ids. You can study the code of
http://webglmol.sourceforge.jp/glmol/embedding-examplesEN.html
to see how to make an atomlist.
Responder al #75230