I made a simple example but I just figured it out on my own and didn’t follow any tutorials so it’s probably not the most efficient. I’ve never made a dynamic bifold door before, though.
Here are the axes for the components. You can see the one on the left here has the origin set where the hinge line between the two panels would be.
Here’s the Attributes setup. Component#1 is the panel with the hinge line running up through it on the right. It didn’t need any attributes because the 90° swing is for Component#3. I guess I could have done a better job of naming them but it’s getting late and I’m about to call it quits for the night. Pay attention to the math for Component#2. It shifts to -2 times the rotation angle of Component#3 because clockwise rotation is negative. Component#2 rotates counter-clockwise so it’s rotation angle is positive. A negative times a negative is a positive.
And the animation looks like this:

Here’s a plan view animation.


