Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Constrain spline lenght

  • Constrain spline lenght

    Posted by Carlos Angeli on February 17, 2012 at 6:26 pm

    Hi, I was wondering if there’s a way to constrain or limit the length of a spline connected to two object’s. Something like having an object fixed and the other hanging from the other point of the spline (like a rope)

    So far, I’ve managed to connect the two objects by two of their points with a Tracer. However, if I add dynamic constrains to each other, as one of the objects falls the spline keeps stretching to infinite.

    Thanks.

    Alessio Libralon replied 13 years, 2 months ago 3 Members · 6 Replies
  • 6 Replies
  • Adam Trachtenberg

    February 17, 2012 at 7:41 pm

    I would use the spline dynamics tag which can be found in the hair tags. Then use a hair constraint tag to attach the spline to the top object and a little xpresso to attach the other object to the last point on the spline. You can also use the spline dynamics’ Mass parameter to assign a greater weight to the last point to create the illusion that the attached object has weight.

    Here’s a basic example: 3730_dynamicspline.c4d.zip

    You’d also want to control the bottom object’s rotation, which you can do via the point node’s normal out port, or by attaching another object further up the spline and using a target tag to point the bottom object at it.

  • Carlos Angeli

    February 19, 2012 at 12:56 am

    Hey Adam.That’s one cool idea. Totally different from the way I was trying to do it. Thanks for the example as well.

  • Carlos Angeli

    February 19, 2012 at 11:46 am

    Adam,

    I was wondering if you can later add body dynamics to your example so the ball can crash against some cubes for example. Thanks

  • Adam Trachtenberg

    February 19, 2012 at 1:58 pm

    You dould add a rigid body collider tag to the ball, so it would move the cubes, but it wouldn’t respond to them because it’s position is driven by the separate spline dynamics system.

  • Carlos Angeli

    February 19, 2012 at 11:02 pm

    Worked like a charm. Thanks!

  • Alessio Libralon

    March 13, 2013 at 4:20 pm

    Thank you very much that was the solution for me too!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy