add_anim_bone_track
Add an animation track for one skeleton bone to a UAnimSequence with identity keys, replacing existing keys in one undo step and saving the package.
Instructions
Add the animation track of one skeleton bone to a UAnimSequence through its data controller, filled with num_keys identity keys (zero translation, identity rotation, unit scale), as one undo step, then save the package. An existing track stays but its keys are replaced (idempotent). A bone_name the sequence's skeleton does not have is an error and nothing is written; an omitted bone_name targets the root bone. A missing sequence or skeleton is an error and a failed save makes success false, with saved=false and save_error. Real poses: set_anim_bone_track_keys; inverse: remove_anim_bone_track.
Returns: { anim_sequence_path, bone_name, num_bone_tracks, num_keys, success, saved, save_error, message }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num_keys | No | Number of identity keys to write, rounded, minimum 1 (default 2); not checked against the frame count of the sequence. | |
| bone_name | No | Name of a bone of the skeleton of the sequence; omitted or empty means the root bone. | |
| anim_sequence_path | Yes | Asset path of the UAnimSequence. |