# Chimera script to report the relative orientation of two models. # Get two models. Assumes only two are currently open. from chimera import openModels m1, m2 = openModels.list() # Calculate relative transformation. xf = m2.openState.xform xf.premultiply(m1.openState.xform.inverse()) # Print transformation to reply log. from PDBmatrices import xform_matrix from FitMap.gui import transformation_description print transformation_description(xform_matrix(xf)) # Show reply log window. from Accelerators.standard_accelerators import show_reply_log show_reply_log()