Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D can I add automatic vertical bob to horizontal movement?

  • can I add automatic vertical bob to horizontal movement?

    Posted by Benjamin Parker on January 22, 2020 at 10:08 am

    Hello smart peeps.

    If I have an object that I move position along the X or Z (or both) axis how could I go about automatically adding in a vertical bob?

    Ideally what I would love to be able to achiave is to set my desired start and finish position and then allow cinema to automatically set the bob mutiple times withnin that distance.

    For example say I set the object to move 100cm the bob would occur over the distance of 10cm so would automatically be fitted in 10 times.

    The distance of the bob would not need to be set in stone as it would be more important for the object to end on the ground plane no matter the distance set.

    This feel like it should be possible but I am not sure how to go about it in C4D so any help would be appreciated.

    many thanks in advance.

    Benjamin Parker replied 6 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • John Williams

    January 22, 2020 at 11:38 am

    Hi there, this is a simple job for XPresso.

    Create you object and animate it along the X. then add an XPresso tag the to object and drag the object into the XPresso Editor two times.
    With the first node, create an out port from the Position X. On the second node create an in port for the Position Y.
    Obviously you can link the two together now and you will get a diagonal movement, so instead you need to add a ‘Range Mapper’ node. Set both the ‘Input Range’ and the ‘Output Range’ to ‘Zero to Hundred’.

    Then open the spline ‘graph’ on the range mapper and draw the shape you want to remap the movement to (in your case a smooth curved arc.) This will map the continued X position movement to a bobbing up and down Y movement. This will also take into consideration any speed changes in your X movement.
    Finally, if you want this to happen multiple times (as in your second illustration) then just tick the ‘Modulo’ button in the range mapper.

    Hope this helps, let me know if I lost you at any point;)

    John Williams

    Soho Editors

  • Benjamin Parker

    January 22, 2020 at 12:07 pm

    Hi John

    Thats perfect thank you. While I have your attention, what is the best way of gaining more control over the height of the Y movement using your suggestion?

    Many thanks

    Long days and pleasant nights.

  • John Williams

    January 23, 2020 at 10:18 am

    Change the ‘Output Upper’ to 200 and you’ll get twice the height.
    Obviously you can change this to any value you like, 200 mean twice the value of the original which was 100.
    And this value can also be keyframed.

    😉

    John Williams

    Soho Editors

  • Benjamin Parker

    January 23, 2020 at 10:55 am

    Perfect.
    Thank you John

    Long days and pleasant nights.

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