Navigation
API > API/Plugins > API/Plugins/ControlRigEditor > API/Plugins/ControlRigEditor/UControlRigSequencerEditorLibrar-
References
| Module | ControlRigEditor |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Public/ControlRigSequencerEditorLibrary.h |
| Include | #include "ControlRigSequencerEditorLibrary.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Private/ControlRigSequencerEditorLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Sequencer Tools | Control Rig")
static bool SnapControlRig
(
ULevelSequence * LevelSequence,
FFrameNumber StartFrame,
FFrameNumber EndFrame,
const FControlRigSnapperSelection & ChildrenToSnap,
const FControlRigSnapperSelection & ParentToSnap,
const UControlRigSnapSettings * SnapSettings,
EMovieSceneTimeUnit TimeUnit
)
Remarks
Peform a Snap operation to snap the children to the parent.
Parameters
| Name | Description |
|---|---|
| LevelSequence | Active Sequence to snap |
| StartFrame | Beginning of the snap |
| EndFrame | End of the snap |
| ChildrenToSnap | The children objects that snap and get keys set onto. They need to live in an active Sequencer in the level editor |
| ParentToSnap | The parent object to snap relative to. If animated, it needs to live in an active Sequencer in the level editor |
| SnapSettings | Settings to use |
| TimeUnit | Unit for frame values, either in display rate or tick resolution |
| Returns | True if successful |