Setting a Reaction Between Two Objects Using Xpresso

Julian Field posts a look at using Xpresso in Cinema 4D to link together a pump and pressure gauge. The idea is that when you move the pump up and down, you will see a respective change to the pressure gauge- In this example the gauge will read a clockwise rotation.

Julian shows how to restrict the movement of a simple representation of a stirrup pump to vertical motion, and then moves on to setup a comparison of values using the C4D Xpresso Vector2Reals node. The final network also utilizes a condition node that is set to decide between the moving gauge indicator, or the stationary one.

The logic behind the Xpresso that makes it work comes in three discreet stages: a clamping stage that restrict the vertical movement of the driver object,  a stage that compares two values by asking a question, and finally a conditional section that will allow to choose between two states.



Some of the links on lesterbanks are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.