Basic Features XPresso XPresso Nodes General Get Nearest Point on Spline Operator
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D
Get Nearest Point on Spline Operator

Basic Parameter

Parameter

Spline Object

Use this setting to link the spline on which the position should be calculated.

Global Position [XYZ ]

Enter the position whose nearest distance to the spline should be calculated here.

Precision [-∞..+∞]

Internally, the number of positions defined here will be distributed along the spline and the shortest distance between points will be ascertained. For very long splines it might be necessary to increase this value in order to increase precision.

Spline Segment [-2147483648..2147483647]

If you have splines with multiple segments, this setting can be used to define which segment the Node should use for its calculation.

All Segments

Enable this option if a spline is made up of multiple segments so the Node will include all segments. Otherwise the number of segments defined by Spline Segment will be applied.

Spline Position [-∞..+∞]
Nearest Point [XYZ ]

These output ports supply the position on the spline that lies nearest to the point defined by Global Position. This is done as follows:

Nearest Segment [-2147483648..2147483647]

This setting outputs the index number of the nearest segment.

Tangent [XYZ ]

This output port outputs the tangent at the nearest point as a directional vector.