Cinema 4D Cinema 4D Prime XPresso XPresso Nodes Calculate (Group)
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D

Distance Operator

Basic Parameter

Distance Operator

This node calculates the distance between two positions in 3D space and outputs the result. For example, if you connect the positions of two objects to the node’s inputs, the node will output the distance between the objects. If you want the distance to be calculated as soon as you move the objects in the viewport, ensure that Live Refresh is enabled (XPresso Editor: Calculate / Live Refresh).

To display the distance value in Cinema 4D’s viewport, create an Object node for a Text spline. Connect the Distance node’s output to the Object node’s Text input. To make the text visible when rendered, make the spline a child of a Loft object or Extrude object.