Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D How to contain an object within an object?

  • How to contain an object within an object?

    Posted by Aaron Selig on April 30, 2014 at 2:03 am

    Hello there,

    I am trying to create an arm that has a piece inside it that makes it extend longer. (Image Below) is it possible to only have the inner piece extend to a certain point so its not shooting out of the arm?

    Any advice would be greatly appreciated!

    Darby Edelen replied 12 years ago 3 Members · 9 Replies
  • 9 Replies
  • Tim Shetz

    April 30, 2014 at 2:38 am

    If i understand you correctly, you could make the inner piece a child of the outer arm. So when you move the outer part, the inner part goes with it.

    __________

    Tim Shetz
    c4dtraining.com

  • Aaron Selig

    April 30, 2014 at 3:20 am

    Thanks for responding Tim,

    I don’t think I explained it right, I tried to make another image. I’m just wondering if there is a way to set a limit for the inner piece of how far it can go.

  • Tim Shetz

    April 30, 2014 at 3:37 am

    Sorry, rereading your post, you explained it fine. It’s my lack of caffeine currently inhibiting me.

    You could use xpresso. What version of Cinema are you using? I can send you an example, just want to make sure I don’t send a wrong version.

    __________

    Tim Shetz
    c4dtraining.com

  • Aaron Selig

    April 30, 2014 at 11:33 pm

    Lack of coffee is the worst! I’m using Cinema 4d Studio R14.

  • Tim Shetz

    May 1, 2014 at 3:49 am

    Agreed.

    I forgot to ask if the main object will be staying still or moving?

    __________

    Tim Shetz
    c4dtraining.com

  • Aaron Selig

    May 1, 2014 at 3:53 pm

    I am creating a case that has an arm that folds out (which I just added a constraint tag so it only moves up and down) and coming out of that arm would be an inner arm that slides out. (the one shown in the picture) So it would most likely be moving

  • Tim Shetz

    May 6, 2014 at 12:02 am

    My apologies Aaron. I let this one slip down. I’ll try to find the file I created when I get home much later this evening and post it for you.

    __________

    Tim Shetz
    c4dtraining.com

  • Aaron Selig

    May 7, 2014 at 5:10 pm

    No worries! Whenever you get the chance I’d appreciate it.

  • Darby Edelen

    May 7, 2014 at 7:36 pm

    I’m away from my computer at the moment but I’m pretty sure that the constraint tag’s clamp mode could do this for you. I think you’d want to make a null object that sits at the hole and clamp the extending object to it. You’d also need to constrain the movement of the object to a specific axis. There are a few ways to do that but clamp should allow it if you set your object axes up for it.

    Darby Edelen

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