I have a protein simulated. I want to measure the angle between two domains (domain II & IV) and use the third domain (domain III) as a hinge between them. First, I want to select center of mass of these domains (instead of using the closest atom to center of mass) then get the angle value throughout the trajectory (for every time step). Unfortunately, I could only get the center of mass coordinates of each domain. How can I make the script in VMD?