Closed hainm closed 5 years ago
Yeah, this would be nice. Needs support in NGL, see https://github.com/arose/ngl/issues/46.
it's quite handy in pv
http://pv.readthedocs.io/en/v1.8.1/sample-measure-distance.html?highlight=distance
should be NGL.
I recently added mouse bindings to do distance, angle, dihedral measurements. In the ts2 branch hold down alt (not shift as stated earlier) and click 2 to 4 atoms and then click on the last atom again to get a measurement. Click on all the atoms of a measurement and click the last one twice to remove it.
wanna cut a release for it so I can try in nglview? or I just use the local build.
need to setup making releases for the ts2 branch, local build is faster for now
okie
@arose what's the exact command(s) to get ngl.js in ts2 branch?
npm install
npm run ts
npm run build-min
``` ?
yes, looks good
thanks, but the updated ngl.dev.js does not work as expected. Shift with left mouse click will trigger the autoview to clicked atom.
alt not shift, sorry
thanks. work now. Do you want to get feed back about that now or just experimenting?
sure, feedback is always welcome
In VMD, there is shortcut key (2) to change to click mode to display distance between two atoms.