This script enables measuring the angle(s) between best-fit planes present in a trajectory. It borrowed heavily from a script by Dr. Reinier Akkermans, biphenyl_10.pl:
https://community.accelrys.com/message/3079#3079
The main contribution of the script is to allow measuring angles between predefined planes in the data model.