open all | close all

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).

该节点计算三维空间中两个位置之间的距离并输出结果。例如,如果将两个对象的位置连接到节点的输入,则节点将输出两个对象之间的距离。如果您希望在视区中移动对象后立即计算距离,请确保启用了 Live Refresh (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.

要在 Cinema 4D 的视图中显示距离值,创建一个文本样条的对象节点。将距离节点的输出连接到对象节点的 Text 输入。若要在呈现时使文本可见,请将样条设置为放样对象或挤出对象的子对象。