A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
IK for folding doors bending the wrong way
Posted: 10 April 2019 12:17 PM   [ Ignore ]  
Total Posts:  138
Joined  2012-04-04

Hi:

I’m trying to rig a set of folding doors using IK, but I’m not having any success making them bend the way I want.

The attached scene uses an IK setup on the right and a setup that uses an Aim constraint on the left.

In my attached scene, when the End Goal on the right moves to the left the doors fold back in the +Z direction.  They’re supposed to fold towards us, in the -Z direction, as is happening in the setup with the Aim constraint.

I think this is happening due to the way the pivots are set up; the middle pivot is farther back than the axis of the Pivot Panel and END, so the chain wants to bend in the +Z direction.  This arrangement emulates how the real doors are built.  The middle hinge is on the back and the pivot panel and end of the handle panel run along a track that’s a few inches forward of that middle back hinge.

I’m not super-versed in IK, so I’m hoping there’s a simple solution I’m missing.

As seen on the left I can get so-so results by animating the rotation of the Pivot panel and using an Aim constraint on the Handle panel to fake it being in its track, but it’s not very smooth.  The target of the Aim constraint has to move in a weird way to make the end of the Handle panel look like it’s in its track.

Any suggestions?

Thank you.

Shawn Marshall
Marshall Arts Motion Graphics

File Attachments
Folding Doors IK.c4d.zip  (File Size: 75KB - Downloads: 51)
Profile
 
 
Posted: 10 April 2019 01:01 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Shawn,

Yes, the IK is more interested in a straight line and then go, instead of bend in one way and then jump over that dead-point.

I have set it up with joints and placed the door-panels so the door connections are placed correctly and can be easily adjusted. This could be done with the axis tool, but it is so much faster, and I would think more precise. As a side effect, exchanging the panels is without penalty.

Scene file
https://www.amazon.com/clouddrive/share/mgRFJUOaEhfIWkMuLMlP5E3Q4T7IcCCyg0bQoL4NCQr
Move the time slider to see the doors working. I have set the coordinates in freeze mode, so a simple zero out (P) brings the original Goal position back.

There is certainly an Xpresso set up thinkable instead.

Cheers

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 10 April 2019 02:55 PM   [ Ignore ]   [ # 2 ]  
Total Posts:  138
Joined  2012-04-04

Hi:

Once again, thanks so much for the quick reply and sample scene.  This should work well for my scene.

Best.

Shawn

Profile
 
 
Posted: 10 April 2019 11:11 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

You’re very welcome Shawn.

Please let me know if there is anything else. I’m happy to have a look at it.

Cheers

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile