Navigation
API > API/Plugins > API/Plugins/ControlRigSpline > API/Plugins/ControlRigSpline/FControlRigSpline
Description
Sets the control points in the spline. It will build the spline if needed, or will update the points if building from scratch is not necessary. The type of spline to build will depend on what is set in SplineMode.
| Name | SetControlPoints |
| Type | function |
| Header File | /Engine/Plugins/Animation/ControlRigSpline/Source/ControlRigSpline/Public/ControlRigSplineTypes.h |
| Include Path | #include "ControlRigSplineTypes.h" |
| Source | /Engine/Plugins/Animation/ControlRigSpline/Source/ControlRigSpline/Private/ControlRigSplineTypes.cpp |
void SetControlPoints
(
const TArrayView < const FVector > & InPoints,
const ESplineType SplineMode,
const bool bInClosed,
const int32 SamplesPerSegment,
const float Compression,
const float Stretch
)
Parameters
| Name | Remarks |
|---|---|
| InPoints | The control points to set. |
| SplineMode | The type of spline |
| bInClosed | If the spline should be closed |
| SamplesPerSegment | The samples to cache for every segment defined between two control rig |
| Compression | The allowed length compression (1.f being do not allow compression`). If 0, no restriction wil be applied. |
| Stretch | The allowed length stretch (1.f being do not allow stretch). If 0, no restriction wil be applied. |