set_anim_root_motion
Set root motion extraction, root lock, and force lock on a UAnimSequence, then save; omitted settings reset to defaults.
Instructions
Write the three root motion settings of a UAnimSequence (bEnableRootMotion, RootMotionRootLock, bForceRootLock) and save it. All three are written on every call, so an omitted one is reset to its default; an unknown root lock name applies RefPose while the reply echoes the given text. Settings the sequence already has are a success with changed=false and saved=false, and the sequence is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
Returns: { anim_sequence_path, enable_root_motion, root_motion_root_lock, force_root_lock, changed, success, saved, save_error, message }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force_root_lock | No | Whether to force the root lock (default false) | |
| anim_sequence_path | Yes | Asset path of the UAnimSequence. | |
| enable_root_motion | No | Whether to enable root motion extraction (default true) | |
| root_motion_root_lock | No | Root lock mode: RefPose|AnimFirstFrame|Zero (default RefPose) |