Navigation
API > API/Plugins > API/Plugins/ControlRigSpline > API/Plugins/ControlRigSpline/FControlRigSpline
References
| Module | ControlRigSpline |
| Header | /Engine/Plugins/Animation/ControlRigSpline/Source/ControlRigSpline/Public/ControlRigSplineTypes.h |
| Include | #include "ControlRigSplineTypes.h" |
| Source | /Engine/Plugins/Animation/ControlRigSpline/Source/ControlRigSpline/Private/ControlRigSplineTypes.cpp |
void SetControlPoints
&40;
const TArrayView< const FVector > & InPoints,
const ESplineType SplineMode,
const bool bInClosed,
const int32 SamplesPerSegment,
const float Compression,
const float Stretch
&41;
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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. |