Navigation
API > API/Plugins > API/Plugins/ControlRigSpline > API/Plugins/ControlRigSpline/FControlRigSpline
Description
Sets the control transforms in the spline. It will build the spline if needed, or will update the transforms if building from scratch is not necessary. The type of spline to build will depend on what is set in SplineMode.
| Name | SetControlTransforms |
| 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 SetControlTransforms
(
const TArrayView < const FTransform > & InTransforms,
const ESplineType SplineMode,
const bool bInClosed,
const int32 SamplesPerSegment,
const float Compression,
const float Stretch
)
Parameters
| Name | Remarks |
|---|---|
| InTransforms | The control transforms 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. |