inertia_tensor.py

This script finds the inertia tensor for the selected range of atoms and residues, and draws it using the PyMOL CGOs. I found it very useful for illustrating how the overall shape of the molecule changes upon domain reorientation, so I thought other PyMOL users might want to use it to visualize the inertia tensors of their molecules.