Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Xpresso Clamp Forgetfulness

  • Xpresso Clamp Forgetfulness

    Posted by Dario on February 26, 2007 at 6:02 pm

    Hi,
    It’s been awhile since I wrote any expresso and now I’ve gone and forgotten how to do a simple clamp!

    My scene has a sphere whose y position also moves the rotation p of another object. This works great.

    Now I’m trying to clamp the sphere’s y position to between 0 and 146 units. So I have two constant nodes, 1 set to ‘0’ and the other set to ‘146.’ Then I have them connected to the ‘lower’ and ‘upper’ ports of the clamp node. Then I connect the right hand side port to the position.y port on the sphere’s node. No worky.

    Embarassed in my forgetfulness.

    Dario replied 19 years, 2 months ago 3 Members · 6 Replies
  • 6 Replies
  • Brian Jones

    February 27, 2007 at 1:22 am

    add a new node for the sphere, from it connect the sphere’s y position into the clamp node’s Value port, everything else sounds like it’s ok (except the constant nodes are not strictly necessary, the 0 and 146 can be set in the Clamp node directly rather than being fed in – but that doesn’t hurt anything)

  • Dario

    February 27, 2007 at 2:45 am

    Tried that but It doesn’t seem to work yet.

  • Mylenium

    February 27, 2007 at 6:52 am

    Have you tried to use the world position instead? Are you sure your sphere even comes close to the limits you specified so your clamp actually kicks in? That aside, the usual platitude: Check your tag priorities. Maybe it’s simply not evaluating properly.

    Mylenium

    [Pour Myl

  • Dario

    February 27, 2007 at 6:15 pm

    Well, I think I’ve done every option but here’s the file in case anyone would care to take a look. I’ve no doubt it’s something I’m missing. BTW, I’m on v9.6.
    I even did one from scratch, just trying to restrict the movement of a cube. No go.
    Thanks

    https://www.jmtype.com/ClampTroubles.c4d

  • Brian Jones

    February 27, 2007 at 11:23 pm
  • Dario

    February 27, 2007 at 11:37 pm

    Thanks Brian,
    So it looks like I forgot that you need to have two nodes for the object.

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