vmd.measure.bond

vmd.measure.bond()

Measures the distance between the atom1 and atom2 over the trajectory, either at the given frame or over frames from first to last. Distances between atoms in different molecules can be measured by giving specific molids

Parameters:
  • atom1 (int) – Index of first atom
  • atom2 (int) – Index of second atom
  • molid (int) – Molecule ID of first atom, defaults to top molecule
  • molid2 (int) – Molecule ID of second atom, if different. (optional)
  • frame (int) – Measure distance in this single frame. Defaults to current
  • first (int) – For measuring multiple frames, first frame to measure
  • last (int) – For measuring multiple, last frame to measure
Returns:

(list of float) – Distance between atoms for given frame(s)