How to change the orientation of hinges dynamically?

Hi! I have a fold that is undergoing complex motion in 3D space (see image). The folds have been modeled by connecting two shells with CONN3D2 hinge elements. As the simulation progresses, the orientation of the folds change. How do I incorporate this changing orientation (with *ORIENTATION?) ?