Rotate Folding Structure Using Kangaroo

I’m wanting to create a script where I fold over a flat piece of triangles as shown in the video, however, the pieces do line up, it’s not shown in the video though. It works with a real-life model I made, just wondering if anyone would have a similar script or that would be able to help me out :slight_smile: cheers!

bf0977e6ff91474eb9ad6da014c4437f|video