Animation¶
202 tools for Animation Blueprints and state machines, sequences, montages, composites, blend spaces, notifies and curves, skeletons, bones and sockets, skeletal meshes and LODs, morph targets, IK rigs and retargeters, Control Rig, pose search and motion warping.
Back to the index.
add_anim_composite_segment¶
Additive
Add an FAnimSegment that plays a whole UAnimSequence to a UAnimComposite's AnimationTrack in one undo step, re-stack all segments end to end, recompute the composite length and save the asset. Without start_pos the new segment is appended after the last one; with start_pos it goes in front of the first segment that starts at or after that time (0 puts it first), and segment_index says where it landed. Every call adds another segment (not idempotent). Create the composite first with create_anim_composite, check it with get_anim_asset_info, and take a segment out by index with remove_anim_composite_segment. A composite and sequence on different skeletons, a start_pos that is not a number, or a path that does not load, is an error and nothing changes. A failed save (always while PIE runs) makes success false, with saved=false and save_error, the segment kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
composite_path |
string | yes | Object path of the UAnimComposite, e.g. '/Game/Animation/AC_Example' (create_anim_composite makes one). |
animation_path |
string | yes | Object path of the UAnimSequence to play, on the composite's skeleton, e.g. '/Game/Anims/A_Walk'; the segment covers its full length. |
start_pos |
number | no | Optional time in seconds that places the new segment: in front of the first segment starting at or after it (0 = first), after every segment when it is at or past composite_length; all segments are then re-stacked end to end. Omit it to append at the end. |
play_rate |
number | no | Playback rate of the segment, 1.0 = normal speed, 2.0 = twice as fast (default 1.0). |
loop_count |
integer | no | How many times the segment repeats, a whole number; values below 1 become 1 (default 1). |
Returns: { composite_path, animation_path, segment_index, num_segments, composite_length, segments, success, saved, save_error }
add_anim_conduit¶
Additive Idempotent Refused during PIE
Add a conduit node named conduit_name to an existing state machine of an Animation Blueprint (a missing blueprint or machine is an error; create the machine with add_anim_state_machine), then mark the blueprint structurally modified and save it without compiling. Idempotent by name: an existing conduit is returned unchanged (already_existed true). The conduit is placed unconnected: link it to states with add_anim_transition; remove_anim_conduit undoes it. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Path to the UAnimBlueprint asset |
machine_name |
string | yes | Name of the target state machine |
conduit_name |
string | yes | Name for the new conduit |
Returns: { anim_blueprint_path: string, machine_name: string, conduit_name: string, node_class: string, conduit_created: bool, already_existed: bool, saved: bool, conduit_count: int, save_error?: string }
add_anim_curve_name¶
Additive Idempotent
Register a curve name as curve metadata on a USkeleton (USkeleton::AddCurveMetaData) in an undo transaction, then save the skeleton package. Idempotent: a name already registered is a success with added=false, already_existed=true and saved=false, and the skeleton is neither modified nor saved. It adds no keys -- to put a keyed float curve on a UAnimSequence use add_anim_float_curve; remove_anim_curve_name is the inverse. An unknown skeleton is an error and a failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
curve_name |
string | yes | The curve name to add (e.g. 'Curve_Example'). |
skeleton_path |
string | no | Asset path of the USkeleton to edit (/Game/...); when omitted or empty the engine asset /Engine/EngineMeshes/SkeletalCube_Skeleton is edited and saved. |
Returns: { skeleton_path, curve_name, present, added, already_existed, curve_count, saved, save_error, message }
add_anim_float_curve¶
Destructive Idempotent
Add a float curve (Editable flag) to a UAnimSequence, or rekey the one already there, through its data controller: its keys become the [time, value] pairs as linear keys with auto tangents, in one undo step, then the package is saved. An existing float curve of that name is kept and its keys are replaced (idempotent); one that already holds exactly those keys is a success with changed=false, applied=false and saved=false, and nothing is written or saved. curve_found confirms the curve and num_keys counts the keys sent. A missing sequence is an error, and so are keys the data controller rejects, with nothing saved; a failed save makes success false, with saved=false and save_error. curve_type=transform is refused before anything is loaded, since [time, value] keys only fit a float curve. Transform curves: add_anim_transform_curve; a skeleton-only name: add_anim_curve_name; read back: get_anim_curve_data.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the UAnimSequence. |
curve_name |
string | yes | Float curve name to add or rekey. |
keys |
array | no | JSON array of [time, value] pairs, time in seconds (default [[0,0],[1,1]]); entries that are not such a pair are skipped. |
curve_type |
string | no | Optional curve type the keys are meant for: float (the default, the only one written). transform is refused with an error pointing at add_anim_transform_curve; any other value is an error. |
Returns: { anim_sequence_path, curve_name, num_float_curves, num_keys, curve_found, changed, applied, success, saved, save_error, message }
add_anim_notify¶
Additive
Add an instance of a UAnimNotify class at a time on a UAnimSequence notify track (created when missing) and save the sequence; each call adds another event, and an unknown class is an error. Returns time and success. For montages use add_montage_notify; for durations add_anim_notify_state. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
animation_path |
string | yes | Full asset path to the UAnimSequence. |
notify_name |
string | yes | Class name of a loaded UAnimNotify subclass, tried as given and then with the AnimNotify_ prefix (e.g. 'AN_Footstep', or "PlaySound" for AnimNotify_PlaySound); a Blueprint notify goes by its generated name ending in _C. |
time |
number | no | Notify trigger time in seconds (default 0) |
track_name |
string | no | Notify track name (default 'Default') |
Returns: { animation_path, notify_name, time, success, saved, save_error, message }
add_anim_notify_name¶
Additive
Register a notify name in the AnimationNotifies list of a USkeleton inside an undo transaction and save the skeleton package; returns present, notify_count and saved. A name already registered is a success with added=false, already_existed=true and saved=false, and the skeleton is neither modified nor saved. Without skeleton_path it edits /Engine/EngineMeshes/SkeletalCube_Skeleton. A failed save makes success false, with saved=false and save_error. Inverse: remove_anim_notify_name.
| Parameter | Type | Required | Description |
|---|---|---|---|
notify_name |
string | yes | The notify name to register (e.g. 'Footstep'). |
skeleton_path |
string | no | Asset path of the USkeleton to edit (/Game/...); when omitted or empty the engine asset /Engine/EngineMeshes/SkeletalCube_Skeleton is edited and saved. |
Returns: { skeleton_path, notify_name, present, added, already_existed, notify_count, saved, save_error, message }
add_anim_notify_state¶
Additive
Add an instance of a UAnimNotifyState class with a start time and duration to a UAnimSequence notify track (created when missing) and save the sequence; each call adds another event, and unknown classes are refused. Returns start_time, duration and success. For instant notifies use add_anim_notify. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
animation_path |
string | yes | Full asset path to the UAnimSequence. |
notify_state_name |
string | yes | Class name of a loaded UAnimNotifyState subclass, tried as given and then with the AnimNotifyState_ prefix (e.g. "Trail" for AnimNotifyState_Trail); a Blueprint notify state goes by its generated name ending in _C. |
start_time |
number | no | Notify state start time in seconds (default 0) |
duration |
number | no | Notify state duration in seconds (default 1.0) |
track_name |
string | no | Notify track name (default 'Default') |
Returns: { animation_path, notify_state_name, start_time, duration, success, saved, save_error, message }
add_anim_slot_group¶
Additive Idempotent
Add an animation slot group (a named group that montage slots belong to; one slot per group plays at a time) to a USkeleton asset in one undo step and save the skeleton. Use it before giving a montage a slot in a new group; the montage side is create_anim_montage (slot_name) or add_montage_slot, and the inverse is remove_anim_slot_group. get_skeleton_info with load_full_data=true reports slot_group_count. Idempotent: a group that already exists returns added=false and is not changed, but the skeleton is still marked dirty and saved. A skeleton that does not load is an error. A failed save (always while PIE runs) makes success false, with saved=false and save_error. Edit a project copy (create_editable_skeleton), not engine content.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | USkeleton asset as a package or object path, e.g. "/Game/Characters/SK_Hero_Skeleton", as get_skeleton_info returns it. |
group_name |
string | yes | Name of the slot group to add, compared as an FName (case ignored), e.g. "WeaponGroup". |
Returns: { asset_path: string, group_name: string, added: bool, slot_group_count: int, saved: bool, save_error?: string }
add_anim_state¶
Additive Idempotent Refused during PIE
Add a state node named state_name to an existing state machine of an Animation Blueprint, then mark the blueprint structurally modified and save it without compiling (compile_anim_blueprint gives runtime effect). Not an undo step. Idempotent by name: a state of that name (case-insensitive) is returned unchanged with already_existed true, and nothing is saved. The machine must sit on the top-level AnimGraph (add_anim_state_machine creates it); a missing blueprint or machine is an error. The new state is unconnected and its animation graph empty: link it with add_anim_transition, fill it with add_graph_node (graph_name="<Machine> > <State>"), check the machine with get_anim_state_machine_info; remove_anim_state is the inverse. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Content path of the UAnimBlueprint (object or package path), e.g. '/Game/Characters/ABP_Hero'. |
machine_name |
string | yes | Name of a state machine on the blueprint's top-level AnimGraph, as get_anim_blueprint_info lists it in state_machines (case-insensitive), e.g. 'Locomotion'. |
state_name |
string | yes | Name for the new state, e.g. 'Idle'; the reply's state_name is the name its graph actually got. |
Returns: { anim_blueprint_path: string, machine_name: string, state_name: string, node_class: string, state_created: bool, already_existed: bool, saved: bool, state_count: int, save_error?: string }
add_anim_state_machine¶
Additive Idempotent Refused during PIE
Add a state machine node named machine_name to the top-level AnimGraph of an Animation Blueprint, then mark the blueprint structurally modified and save it without compiling (compile_anim_blueprint gives runtime effect). Idempotent by name: an existing machine is returned unchanged (already_existed true). The node starts with only its entry and is not connected to the Output Pose: wire it with connect_pins (graph_name="AnimGraph"), fill it with add_anim_state, add_anim_conduit and add_anim_transition, or build it in one call with build_anim_state_machine. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Path to the UAnimBlueprint asset |
machine_name |
string | yes | Name for the new state machine |
Returns: { anim_blueprint_path: string, machine_name: string, node_class: string, state_machine_graph: string, state_machine_created: bool, already_existed: bool, saved: bool, state_machine_count: int, save_error?: string }
add_anim_sync_marker¶
Destructive
Append an authored sync marker (name and time, on marker track 0) to a UAnimSequence in an undo transaction and save it; duplicates are not checked, nor is the time checked against the sequence length. Returns num_sync_markers. Remove with remove_anim_sync_marker. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the UAnimSequence. |
marker_name |
string | yes | Name of the sync marker (e.g. "LeftFootDown"); sequences in one sync group line up markers that share a name. |
time |
number | no | Sync marker time in seconds (default 0.5) |
Returns: { anim_sequence_path, marker_name, time, num_sync_markers, success, saved, save_error, message }
add_anim_transform_curve¶
Destructive
Add a transform curve (RCT_Transform) to a UAnimSequence via the data controller and set its keys as linear keys per axis, in one undo step, then save the package; the sampling rate of the sequence is left as it is. An existing transform curve of that name is kept and its keys are replaced; one that already holds exactly those keys is a success with changed=false, keys_set=false and saved=false, and nothing is written or saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Object path of the UAnimSequence. |
curve_name |
string | yes | Name of the transform curve to add. |
keys |
array | no | JSON array of {time, location:[x,y,z], rotation:[pitch,yaw,roll], scale:[x,y,z]} objects |
Returns: { anim_sequence_path, curve_name, num_transform_curves, num_keys, keys_set, changed, success, saved, save_error, message? }
add_anim_transition¶
Additive Idempotent Refused during PIE
Add a transition from source_state to target_state in an existing state machine of an Animation Blueprint, set its crossfade, blend mode, bidirectional flag and priority, then mark the blueprint structurally modified and save it without compiling (compile_anim_blueprint gives runtime effect). The machine (top-level AnimGraph) and both endpoints (a state or a conduit) are matched by name without case; a missing one, the same state twice or an unknown blend_mode is an error. Idempotent per pair: an existing source->target transition is returned unchanged with already_existed=true and nothing is saved (to change its settings, remove_anim_transition and add it again). It starts with no rule: wire one with set_anim_transition_rule_from_bool, set_anim_transition_rule_from_comparison or set_anim_transition_rule_automatic. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Path to the UAnimBlueprint asset |
machine_name |
string | yes | Name of the state machine that owns both states |
source_state |
string | yes | Name of the source state or conduit (transition origin), matched without case |
target_state |
string | yes | Name of the target state or conduit (transition destination), matched without case |
crossfade_duration |
number | no | Optional blend duration in seconds (default 0.2) |
blend_mode |
string | no | Optional EAlphaBlendOption name, e.g. Linear, Cubic, HermiteCubic (default HermiteCubic); an unknown name is an error |
bidirectional |
boolean | no | Optional, default false; sets the Bidirectional flag so the same transition can also fire target->source (no second transition is added) |
priority_order |
integer | no | Optional priority order (default 1); when several transitions out of a state pass at once, the smallest value wins |
Returns: { anim_blueprint_path: string, machine_name: string, source_state: string, target_state: string, transition_created: bool, already_existed: bool, crossfade_duration: number, blend_mode: string, bidirectional: bool, priority_order: int, transition_count: int, saved: bool, save_error?: string }
add_animation_asset_to_pose_search_database¶
Additive
Append an animation asset to a UPoseSearchDatabase as an enabled entry over its full range, then save the database; an asset already in it is left alone (already_existed=true, saved=false, nothing saved). The asset type is not checked, and the search index is not rebuilt: run build_pose_search_database_index afterwards.
| Parameter | Type | Required | Description |
|---|---|---|---|
database_path |
string | yes | Asset path of the UPoseSearchDatabase (required). |
animation_asset_path |
string | yes | Asset path of a UAnimSequenceBase / UAnimComposite / UAnimMontage / UBlendSpace (required). |
Returns: { database_path, animation_asset_path, animation_asset_count, added, already_existed, saved, message }
add_blend_space_sample¶
Additive
Add one sample (an animation placed at a blend position) to a UBlendSpace or UBlendSpace1D in one undo step, rebuild its runtime data and save the asset. Every call appends a new sample, so it is not a retry-safe call. A sample the engine would reject is refused before anything changes, with success=false, added=false, sample_index -1, saved=false and the reason in the error: an animation whose skeleton is neither the blend space's nor compatible with it, an additive type the blend space does not take or that differs from the existing samples', a position already taken by a sample, or a position an axis cannot widen to in 1000 grid steps or fewer. Otherwise a position past an axis range widens that axis. The sample is read back after the rebuild: animation and blend_x, blend_y, blend_z are what the asset holds at sample_index. Create the asset with create_blend_space and list its samples with get_blend_space_samples; move or swap an existing sample with set_blend_space_sample, and take one out with remove_blend_space_sample. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
blendspace_path |
string | yes | Object path of the UBlendSpace or UBlendSpace1D asset, e.g. '/Game/Animation/BS_Locomotion' (create_blend_space makes one). |
animation_path |
string | yes | Object path of the UAnimSequence played at this position, on the blend space's skeleton or one compatible with it, e.g. '/Game/Animation/Run_Fwd'. |
blend_value |
number|array | no | Blend position in the axis units: one number for a 1D blend space, or [x, y] (up to 3 numbers) for a 2D one, e.g. [0, 300]; default 0 on every axis. |
Returns: { blendspace_path: string, sample_index: int, num_samples: int, added: bool, animation?: string, blend_x?: number, blend_y?: number, blend_z?: number, saved: bool, save_error?: string, message?: string }
add_bone¶
Additive Idempotent
Add a bone named bone_name to the reference skeleton of a USkeleton asset under parent_name (omitted or empty: an extra root bone), with local_transform relative to the parent (a zero or missing scale becomes 1), then save the skeleton. Idempotent by name: an existing bone is returned (added false, already_existed true) without checking its parent or saving. An unknown parent is an error, and so is a failed save. Only the skeleton changes: skeletal meshes using it get no new bone, and there is no undo entry. No commit_bone_changes is needed; set_bone_parent and set_bone_transform edit bones, add_virtual_bone adds virtual ones.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Path to the USkeleton asset |
bone_name |
string | yes | Name for the new bone; when a bone of that name already exists nothing changes (added false) |
parent_name |
string | no | Parent bone name, or empty/null for a new root bone |
local_transform |
object | no | Optional {location:[x,y,z], rotation:[p,y,r], scale:[x,y,z]}, defaults to identity |
Returns: { asset_path, bone_name, bone_index, parent_index, bone_count, added, already_existed, saved, op: "add_bone" }
add_foot_ik_node¶
Additive Idempotent Refused during PIE
Add a Leg IK node (UAnimGraphNode_LegIK) to the top-level AnimGraph of an Animation Blueprint, or reuse the first one already there, bind the feet into its LegsDefinition, then mark the blueprint structurally modified and save it without compiling. Leg 0 gets left_foot_bone and leg 1 right_foot_bone as the FK foot bone; a leg's IK target bone is set to the same bone when it is unset or the leg's foot changes, so the node compiles but has no effect until each IK target names an IK bone (set_properties on the node's object_path, LegsDefinition in its Node struct); legs beyond the first two and the other leg settings are kept. Bones the target skeleton lacks are an error and nothing is written. The node is left unwired: connect it with connect_pins. Idempotent; refused while PIE runs unless force=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Path to the UAnimBlueprint asset. |
left_foot_bone |
string | yes | Left foot bone, written as the FK foot bone of leg 0; checked against the target skeleton when the blueprint has one. |
right_foot_bone |
string | yes | Right foot bone, written as the FK foot bone of leg 1; checked against the target skeleton when the blueprint has one. |
Returns: { anim_blueprint_path, node_id, left_foot_bone, right_foot_bone, legs: [{ fk_foot_bone, ik_foot_bone, num_bones_in_limb }], bones_checked_against, ik_node_count, already_existed, saved, save_error }
add_ik_goal¶
Additive Idempotent
Add an IK goal to an IK Rig, associated with a bone, through the IK Rig controller (one undo transaction), then save the asset. If bone_name is omitted, a leaf bone of the rig's skeletal mesh is picked automatically. Idempotent: a goal of that name on the same bone is not re-created but returned with already_exists=true, saved=false and a note, and nothing is saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
goal_name |
string | yes | Unique name for the new goal |
bone_name |
string | no | Optional bone name to attach the goal to |
Returns: { asset_path: string, goal_name: string, bone_name: string, goal_count: int, saved: bool, already_exists?: bool, save_error?: string, note?: string }
add_ik_retarget_chain¶
Additive
Add a retarget bone chain from start_bone to end_bone, optionally tied to an IK goal, to an IK Rig asset and save it. Both bones must exist in the skeleton of the rig; the chain name is made unique, so read chain_name back. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | IK Rig (UIKRigDefinition) asset path, e.g. "/Game/Retarget/IK_Hero". |
chain_name |
string | yes | Name for the new retarget chain (uniquified by the engine) |
start_bone |
string | yes | First bone of the chain; must exist in the skeleton of the rig. |
end_bone |
string | yes | Last bone of the chain; must exist in the skeleton of the rig. |
goal_name |
string | no | IK goal to attach the chain to (default none); not checked against the goals of the rig. |
Returns: { asset_path: string, chain_name: string, start_bone: string, end_bone: string, goal_name: string, chain_count: int, saved: bool, save_error?: string }
add_ik_solver¶
Additive
Add a new, unconfigured IK solver at the bottom of an existing IK Rig's solver stack through the IK Rig controller (one undo step), then save the asset. Every call adds another solver (not idempotent); solver_index in the reply is the handle the other solver tools take. Create the rig first with create_ik_rig; then set its bones with set_ik_solver_bones, its settings with set_ik_solver_settings, attach goals (add_ik_goal) with connect_ik_goal_to_solver, reorder with move_ik_solver_in_stack, take one out with remove_ik_solver, and read the stack back with get_ik_rig_info or one solver with get_ik_solver_details. An unknown solver_type, or a rig that does not load, is an error and nothing changes. A failed save (always while PIE runs) makes success false, with saved=false and save_error, the solver kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | IK Rig (UIKRigDefinition) asset as a package or object path, e.g. "/Game/Rigs/IK_Mannequin". |
solver_type |
string | no | "FullBodyIK" (default; also "FBIK"), "Limb", "Pole", "BodyMover", "SetTransform" or "StretchLimb", case ignored; spaced forms ("Full Body IK") and the struct names ("FIKRigLimbSolver") are accepted too. solver_type in the reply is the canonical name and solver_struct the engine struct. |
Returns: { asset_path: string, solver_index: int, solver_type: string, solver_struct: string, solver_count: int, saved: bool, save_error?: string }
add_montage_notify¶
Destructive
Append a name-only notify event (no UAnimNotify class) to a UAnimMontage at an absolute trigger time on notify track 0 and save the montage; every call appends another event. Returns trigger_time, notify_count and the notifies name list. Remove with remove_montage_notify. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
notify_name |
string | yes | Name of the notify event (e.g. 'Footstep'). |
trigger_time |
number | no | Absolute notify trigger time in seconds (default 0) |
Returns: { montage_path, notify_name, trigger_time, notify_count, notifies, added, saved, save_error, message }
add_montage_section¶
Additive
Add a composite section to a UAnimMontage at an absolute start time, or move the existing section of that name there; it does not link sections (use link_montage_sections). Saves the montage in an undo transaction and returns start_time, section_count, sections, already_existed and added (true only for a new section). A section of that name already at that start time is a success with changed=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
section_name |
string | yes | Name of the section to add (e.g. 'Loop'). |
start_time |
number | no | Absolute section start time in seconds (default 0) |
Returns: { montage_path, section_name, start_time, section_count, sections, already_existed, added, changed, saved, save_error, message }
add_montage_segment¶
Additive
Append an animation segment referencing a real UAnimSequence to a montage slot. A failed save makes success false, with saved=false and save_error. Inverse: remove_montage_segment; read: get_montage_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Object path of the UAnimMontage (e.g. "/Game/MyGame/AM_Example"). |
anim_sequence_path |
string | yes | Object path of the UAnimSequence to reference. |
slot_name |
string | no | Montage slot name (e.g. DefaultSlot) |
play_rate |
number | no | Segment play rate (default 1.0) |
loop_count |
number | no | Segment loop count, minimum 1 (default 1) |
Returns: { montage_path, anim_sequence_path, slot_name, segment_count, montage_length, play_rate, loop_count, success, saved, save_error }
add_montage_slot¶
Additive
Add an empty slot animation track with the given slot name to a UAnimMontage in an undo transaction and save it; an existing slot of that name is a success with added=false, already_existed=true and saved=false, and the montage is neither modified nor saved. Returns slot_count, the slots list and present. Fill it with add_montage_segment; inverse: remove_montage_slot. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
slot_name |
string | yes | Name of the slot track to add (e.g. 'UpperBody'). |
Returns: { montage_path, slot_name, slot_count, slots, present, already_existed, added, saved, save_error, message }
add_motion_warping_component¶
Additive Idempotent
Attach a UMotionWarpingComponent named MotionWarping to an editor-world actor given by full object path, internal name or label. add_component_to_actor (component_type MotionWarpingComponent, idempotent=true) does the same for an actor's internal name only; this tool adds the path/label lookup. Idempotent: if the actor already has one, it is returned with already_existed:true and nothing is written. A new one is an instance component (save_level keeps it, and construction-script reruns do not drop it) added in one undo step; the actor's package is marked dirty, not saved. When another object of the actor already holds the name MotionWarping, the new component gets a unique variant, returned in component_name. Add targets with add_motion_warping_target, read them with get_motion_warping_component_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_path |
string | yes | Full editor path (e.g. "/Game/Maps/Test.Test:PersistentLevel.ActorName"), internal name or label of the actor. |
Returns: { actor_path: string, component_name: string, component_path: string, already_existed: bool, added?: bool } -- added is read back: the new component is registered, listed among the actor's instance components and found on the actor; false makes the call fail
add_motion_warping_target¶
Destructive Idempotent
Add (or update in-place) a FMotionWarpingTarget on an existing UMotionWarpingComponent, including moving or re-aiming an existing target. Exactly one of four payload shapes must be supplied: (1) component_path -> AddOrUpdateWarpTargetFromComponent(name, comp, NAME_None, false, TargetsForwardVector, ZeroVector, ZeroRotator); (2) location + rotation -> AddOrUpdateWarpTargetFromLocationAndRotation; (3) location only -> AddOrUpdateWarpTargetFromLocation (rotation [0,0,0]); (4) rotation only, on a target that already exists -> its Location is kept and only the rotation changes (a missing target is an error). Shapes 2-4 rebuild the target as a plain transform target, so a component-based one loses its Component, BoneName, follow flag and offsets. The engine API is idempotent by WarpTargetName (replace-in-place). Marks the owning level dirty; WarpTargets is Transient, so the targets are not saved with the level.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_path |
string | yes | Full editor path or short name of the actor. actor_name (the internal object name) is accepted as an alias. |
target_name |
string | yes | FName identifier for the warp target. warp_target_name is accepted as an alias. |
location |
array | no | Optional world [x, y, z] location for the target. |
rotation |
array | no | Optional world [pitch, yaw, roll] rotation in degrees for the target; alone, it re-aims an existing target and keeps its location. |
component_path |
string | no | Optional name of a USceneComponent on the actor to drive the target transform. |
warp_target_name |
string | no | Alias of target_name: the same value with the same meaning. Pass one of the two. |
actor_name |
string | no | Alias of actor_path: the same value with the same meaning. Pass one of the two. |
Returns: { actor_path: string, target_name: string, warp_target_count: int, previous_count: int, source: string (component | location_and_rotation | location | rotation), already_existed: bool, previous_location?: [x,y,z], previous_rotation?: [pitch,yaw,roll], location: [x,y,z], rotation: [pitch,yaw,roll], changed: bool, applied: bool } -- applied is read back: the target is found holding the requested component, location and rotation; false makes the call fail
add_notify_track¶
Additive
Add a named notify TRACK to a UAnimSequence (the track itself, not events on it) in an undo transaction and save it. A track of that name already there is a success with already_existed=true and nothing saved; a failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
animation_path |
string | yes | Full asset path to the UAnimSequence. |
track_name |
string | yes | Notify track name to add. |
color |
string | no | Optional track color as an [r,g,b] or [r,g,b,a] float array (default white). |
Returns: { animation_path, track_name, track_names, track_count, already_existed, saved, save_error, message }
add_pose_search_channel_to_schema¶
Destructive Idempotent
Add a feature channel (what motion matching compares: Pose, Trajectory, Position, Velocity or Heading) to a Pose Search schema, or, when the schema already has a channel of that class, set that channel's weight instead (already_existed true), then re-finalize the schema and save it. Use it to shape what a database built on the schema matches on; remove one with remove_pose_search_channel_from_schema, read the result with get_pose_search_schema_info, and rebuild the index afterwards with build_pose_search_database_index, which this does not do. Idempotent per channel class: the check looks at every channel the schema has, finalized or not, so a repeat call never adds a duplicate. finalized says whether the schema finalized with the change: when false (schema_cardinality 0, a finalize_warning, usually a channel naming a bone the skeleton lacks) the channel is still added and saved, but the schema cannot be built until that is fixed. An unknown channel_type or a schema that does not load is an error and nothing changes; a failed save answers success false with the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
schema_path |
string | yes | Asset path of the UPoseSearchSchema (required). |
channel_type |
string | yes | One of 'Pose', 'Trajectory', 'Position', 'Velocity', 'Heading' (required). |
weight |
number | no | How much this channel counts against the others when matching, a float >= 0 (default 1.0); omitting it on an existing channel resets that channel's weight to 1.0. |
Returns: { schema_path, channel_type, channel_class, weight, schema_cardinality, channel_count (finalized), source_channel_count, finalized, finalize_warning?, added, already_existed, weight_updated, saved, save_error?, message }
add_pose_to_pose_asset¶
Destructive
Add a pose copied from the skeleton reference pose to a UPoseAsset under the given name (a pose of that name is replaced) in an undo transaction and save it; refused when the asset has no skeleton. A pose of that name that already holds exactly that reference pose (every bone a track, zero curve values, no source animation GUID) is a success with added=false, already_existed=true and saved=false, and the asset is neither modified nor saved. Returns num_poses, num_tracks and already_existed. For poses from animation frames use create_pose_asset_from_anim_sequence. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
pose_asset_path |
string | yes | Path to the UPoseAsset (e.g. '/Game/MyGame/Pose_Example'). |
pose_name |
string | yes | Name of the pose to add (e.g. 'RefPose_A'). |
Returns: { pose_asset_path, pose_name, num_poses, num_tracks, present, added, already_existed, saved, save_error, message }
add_retargeter_op¶
Additive
Add a retarget op to the op stack of an IK Retargeter asset through its controller (one undo transaction), then save the asset; op_index and op_name are where and how the engine placed it. Default type: FK Chains op. An unknown op type, or a singleton op type the stack already has, is an error. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Path to the UIKRetargeter asset |
op_type |
string | no | Optional op class path (default "/Script/IKRig.IKRetargetFKChainsOp") |
Returns: { asset_path: string, op_index: int, op_name: string, op_type: string, op_count: int, saved: bool, save_error?: string }
add_rig_element¶
Additive Refused during PIE
Add a bone, a null (a space: a transform-only element) or an animation control to the hierarchy of a Control Rig Blueprint, under parent_name or at the root, then compile and save the blueprint; there is no undo step and it is refused while PIE runs unless force is set. element_type picks the kind: a bone or null is placed at location/rotation/scale in rig global space; a control (control_type, Float by default) gets a zero or identity value and no limits, its name doubling as its display name, and an unrecognised control_type makes a Float control with control_type_recognized false instead of failing. The engine keeps names unique, so element_key is the name the element really got (a name in use gets a numbered suffix, so each call adds another element), and parent is the parent read back from the hierarchy. A parent the hierarchy does not have is an error and nothing is added; so is a rig that cannot be loaded, and a failed save makes success false with save_error. Set a control up with set_rig_control_value, set_rig_control_limits and set_rig_control_settings; inspect: get_rig_hierarchy; rename or take out: rename_rig_element, remove_rig_element.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Control Rig Blueprint asset path, e.g. "/Game/Rigs/CR_Hero" |
element_name |
string | yes | Name of the new element. bone_name, null_name and control_name are accepted as aliases. |
element_type |
string | no | Optional. "bone" (default), "null" ("space" is accepted) or "control", case ignored; defaults to "control" when control_type is given. Any other value is an error. |
control_type |
string | no | Optional, controls only: one of "bool", "float", "scalefloat", "integer", "int", "vector2d", "position", "scale", "rotator", "transform", "eulertransform" (default "float"). Given with element_type bone or null it is an error. |
parent_name |
string | no | Existing element to parent the new one under; omitted or empty puts it at the root, and a name the hierarchy lacks is an error. A bone is parented under a bone only. |
parent_type |
string | no | Optional element type of the parent for a null or control ("Bone"/"Null"/"Control"/etc, case ignored, "Space" means Null); default Bone for a null and Null for a control, and an unknown type falls back to that default. Bones ignore it. |
location |
array | no | Optional [x, y, z] location in rig global space for a bone or null (default the origin). |
rotation |
array | no | Optional [pitch, yaw, roll] rotation in rig global space for a bone or null. |
scale |
array | no | Optional [x, y, z] scale for a bone or null (default 1,1,1). |
bone_name |
string | no | Alias of element_name: the same value with the same meaning. Pass one of the two. |
null_name |
string | no | Alias of element_name: the same value with the same meaning. Pass one of the two. |
control_name |
string | no | Alias of element_name: the same value with the same meaning. Pass one of the two. |
Returns: { asset_path: string, element_key: string, element_type: string, parent: string, control_type?: string, control_type_recognized?: bool, bone_count: int, null_count: int, control_count: int, curve_count: int, other_count: int, total: int, saved: bool, save_error: string }
add_skeletal_mesh_lod¶
Additive
Append one LOD to a skeletal mesh asset found by content path, its LOD info a copy of LOD 0's (build and reduction settings, material map, flags) with ScreenSize.Default set to screen_size, or 0.5 when omitted. Each call appends another LOD (not idempotent), in one undo step; the mesh is marked dirty but not saved, and its render data is not regenerated: bake_skeletal_mesh_lod with regenerate_even_if_imported=true and new_lod_count omitted builds the new LOD (its defaults skip it, as it copies LOD 0's imported flag; note says which applies), then keep it with save_asset. A mesh that does not load is an error. To append reduced LODs in one call, use bake_skeletal_mesh_lod with a higher new_lod_count instead. Tune this LOD with set_skeletal_mesh_lod_reduction_settings or set_skeletal_mesh_lod_settings (screen_size); take one out with remove_skeletal_mesh_lod; inspect it with get_skeletal_mesh_lod_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset, e.g. "/Game/Characters/SKM_Hero" |
screen_size |
number | no | Optional ScreenSize.Default of the new LOD, the screen size at which it switches in (default 0.5); not clamped |
Returns: { skeletal_mesh_path: string, lod_index: int, lod_count: int, screen_size: float, added: bool, note: string } -- added is read back (one more LOD, carrying screen_size)
add_skeletal_mesh_socket¶
Additive
Add a socket on a named bone of a skeletal mesh asset (undoable) and save the mesh. A copy also goes to the mesh's skeleton, which is then saved too; when the skeleton already has a socket of that name, the mesh has no skeleton, or the skeleton is engine content or under a read-only root, no copy is made (added_to_skeleton false) and skeleton_note says why. Errors, writing nothing, when the mesh does not load, the mesh already has a socket of that name, or the bone is missing from the mesh or its skeleton. success is false when a changed package fails to save. Edit existing sockets with set_skeletal_mesh_socket_transform or rename_skeletal_mesh_socket; skeleton-only sockets with add_skeleton_socket.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset |
socket_name |
string | yes | Name for the new socket; leading and trailing spaces are trimmed, and a name the mesh already has is an error. |
bone_name |
string | yes | Name of the bone to attach the socket to; it must exist in the mesh and, when the copy goes to the skeleton, in the skeleton too. |
location |
array | no | Optional [x, y, z] relative location |
rotation |
array | no | Optional [pitch, yaw, roll] relative rotation |
Returns: { socket_name: string, bone_name: string, socket_count: int, location_x: float, location_y: float, location_z: float, added_to_skeleton: bool, skeleton_path: string, skeleton_note: string?, saved: bool, save_error: string?, skeleton_saved: bool?, skeleton_save_error: string? }
add_skeleton_socket¶
Additive
Add a socket to a USkeleton asset on a bone (the root by default) at a bone-relative location and rotation, then save; an existing socket of that name is updated in place (already_existed true). A failed save makes success false, with saved=false and save_error. A socket on a skeletal mesh asset (copied to its skeleton when that skeleton is project content): add_skeletal_mesh_socket.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | USkeleton asset path, e.g. "/Game/Characters/SK_Hero_Skeleton". |
socket_name |
string | yes | Name of the socket; an existing socket with this name is updated instead of duplicated. |
bone_name |
string | no | Bone to attach the socket to; must exist in the skeleton (default the root bone). |
location |
array | no | Socket location relative to its bone as [x, y, z] (default 0,0,0) |
rotation |
array | no | Socket rotation relative to its bone as [pitch, yaw, roll] (default 0,0,0) |
Returns: { asset_path: string, socket_name: string, bone_name: string, socket_count: int, added: bool, already_existed: bool, saved: bool, save_error: string? }
add_virtual_bone¶
Additive Idempotent
Add a virtual bone from source_bone to target_bone to a USkeleton asset loaded by asset path, then save the skeleton; the engine names it "VB <source>_<target>", returned as virtual_bone_name. An omitted source_bone is the first bone of the reference skeleton (usually the root) and an omitted target_bone the first other bone. Bone names are not checked against the skeleton, so a misspelt one is stored as given; the same bone for both, or a skeleton with fewer than 2 bones, is an error. Idempotent: a virtual bone that already joins that exact pair is returned with already_exists=true and saved=false, nothing written. A failed save (PIE running, read-only file) makes success false with save_error, the bone kept in memory. Inverse: remove_virtual_bone; list them: get_skeleton_info (load_full_data=true); a project copy to edit: create_editable_skeleton.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | USkeleton asset path, e.g. "/Game/Characters/SK_Hero_Skeleton". |
source_bone |
string | no | Bone the virtual bone starts from (default the first bone, usually the root); not validated. |
target_bone |
string | no | Bone the virtual bone points to (default the first bone that differs from source_bone); not validated. |
Returns: { asset_path: string, virtual_bone_name: string, source_bone: string, target_bone: string, virtual_bone_count: int, saved: bool, already_exists: bool }
assign_skeletal_mesh_physics_asset¶
Destructive
Assign a physics asset to a skeletal mesh (or pass null/empty to clear it).
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset |
physics_asset_path |
string | no | Content path to the physics asset (e.g. /Game/MyPhysAsset); empty string clears the assignment |
Returns: { skeletal_mesh_path: string, physics_asset_path: string, assigned: bool, cleared: bool, physics_asset_name: string, applied: bool, saved: bool, save_error?: string } -- the physics asset is read back from the mesh
bake_skeletal_mesh_lod¶
Destructive
Regenerate the LODs of a skeletal mesh asset (found by content path) with the engine's mesh reduction, driven by each LOD's reduction settings, then rebuild its render data; nothing is saved, so follow with save_asset. A new_lod_count below the current count drops the LODs above it; above it, appends reduced LODs up to that count; 0, omitted or equal re-reduces the LODs that were generated, plus imported LODs above 0 with regenerate_even_if_imported and LOD 0 with generate_base_lod. A mesh that does not load is an error; during PIE, where the engine regenerates nothing, the call is refused before the mesh is touched, and any other run the engine refuses fails with baked=false and bake_warning. Author the settings first with set_skeletal_mesh_lod_reduction_settings; one empty LOD entry: add_skeletal_mesh_lod; one LOD out by index: remove_skeletal_mesh_lod; triangle counts: get_asset_lod_settings.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset, e.g. "/Game/Characters/SKM_Hero" |
new_lod_count |
integer | no | Target LOD count; fewer than now drops the extra LODs, more appends reduced ones, and <= 0 (the default when omitted) keeps the current count and re-runs reduction |
regenerate_even_if_imported |
boolean | no | bool, also re-reduce imported LODs above 0 when the count is kept (default false) |
generate_base_lod |
boolean | no | bool, re-derive LOD 0 from its reduction settings when the count is kept (default false) |
Returns: { skeletal_mesh_path: string, old_lod_count: int, new_lod_count: int, lod_count: int, baked: bool, regenerate_even_if_imported: bool, generate_base_lod: bool, bake_warning?: string }
build_anim_state_machine¶
Destructive Idempotent Refused during PIE
Atomic JSON-spec builder for an Animation Blueprint state machine. Builds (or reuses) the state machine, then iterates states, transitions, and per-transition rules in one idempotent call. Replaces 8+ primitive cmds (add_anim_state_machine + add_anim_state + add_anim_transition + set_anim_transition_rule_*) with a single spec. Re-running with the same spec is a no-op (each primitive is internally idempotent: state-by-name, transition-by-source+target). For repeated invocations that change rule shape, the rule is re-applied on the existing transition.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Path to the UAnimBlueprint asset |
state_machine_name |
string | yes | Target state machine name (created if missing via add_anim_state_machine) |
spec |
object | yes | JSON describing the graph shape. states: [{name: str, animation?: str (/Game/Anim/Foo — optional; load-bearing for the runtime state asset but NOT created here), loop?: bool, pos?: [x, y]}]. transitions: [{from: str, to: str, blend?: number (= crossfade_duration seconds), bidirectional?: bool, priority_order?: int, rule?: object}]. Each rule variant maps 1:1 to an existing primitive cmd: {type: "automatic", enabled?: bool = false, trigger_time?: number = 0.0} | {type: "bool", variable: str (must exist on the AnimBP), invert?: bool = false} | {type: "comparison", variable: str (must be float/double on the AnimBP), operator: "=="|"!="|">"|"<"|">="|"<=", comparison_value: number}. An absent rule leaves the transition inert (no rule wired). |
compile_after |
boolean | no | Optional, default false; if true runs compile_anim_blueprint at the end |
Returns: { success: bool, anim_blueprint_path: string, machine_name: string, machine_already_existed: bool, states_created: int, states_skipped: int, transitions_created: int, transitions_updated: int, transitions_skipped: int, errors: [string], compiled: bool, compiled_after: bool }
build_pose_search_database_index¶
Destructive
Start a fresh build of the motion-matching search index of a UPoseSearchDatabase (FAsyncPoseSearchDatabasesManagement::RequestAsyncBuildIndex with NewRequest), cancelling any build already running for it and replacing the old index, and by default wait for it to finish. Run it after add_animation_asset_to_pose_search_database, remove_animation_asset_from_pose_search_database, set_pose_search_database_schema or a schema channel change, none of which rebuild the index; then test it with evaluate_pose_search_query. The index is derived data, not saved into the asset: nothing is saved and there is no undo step. A database that does not load, has no schema (set_pose_search_database_schema), or whose schema still has no finalized channels after a re-finalize in memory is an error before any build. status says what happened: built (success true), in_progress (success true when wait_for_completion is false, since the build was started; a build still running after a wait is a failure), or failed (success false: a database with no animation assets always fails, because the engine fails an empty index, and the message says so; any other failure is in LogPoseSearch). Repeating the call rebuilds again.
| Parameter | Type | Required | Description |
|---|---|---|---|
database_path |
string | yes | Asset path of the UPoseSearchDatabase, e.g. "/Game/Anim/PSD_Locomotion", as create_pose_search_database returns it (required). |
wait_for_completion |
boolean | no | true (default) blocks until the build ends, pumping the engine meanwhile, so large databases take a while; false returns at once, usually with status in_progress (or built when the index was already up to date). |
Returns: { database_path, schema_path, schema_cardinality, animation_asset_count, wait_for_completion, result: "Success"|"InProgress"|"Failed", status: "built"|"in_progress"|"failed", success, in_progress, failed, message }
clear_anim_graph_node_pin_binding¶
Destructive Idempotent Refused during PIE
Remove the property binding from one input pin of an AnimGraph node (inverse of set_anim_graph_node_pin_binding), dropping a stale binding without recreating the node. Returns was_bound, is_bound and cleared; an unbound pin gives cleared=false, not an error. Undoable; saves the AnimBP without recompiling (run compile_anim_blueprint).
| Parameter | Type | Required | Description |
|---|---|---|---|
node_id |
string | yes | NodeGuid of the target UAnimGraphNode_* (from get_graph_nodes). |
pin_name |
string | yes | The bound property/pin name whose binding to clear (e.g. "TransformTrajectory"). |
anim_blueprint_path |
string | no | Path or name of the UAnimBlueprint (aliases: anim_blueprint, blueprint_name). |
graph_name |
string | no | Target graph (optional; deep-resolved; default the top-level AnimGraph). |
anim_blueprint |
string | no | Alias of anim_blueprint_path, used only when anim_blueprint_path is absent or empty. |
blueprint_name |
string | no | Alias of anim_blueprint_path, used only when anim_blueprint_path and anim_blueprint are both absent or empty. |
Returns: { node_id, pin_name, was_bound, is_bound, cleared, unbound, saved, save_error?, success, error? } -- is_bound is read back after the removal; success needs unbound and saved
clear_anim_transition_rule¶
Destructive Idempotent Refused during PIE
Empty the rule of one transition (source_state to target_state) in an Animation Blueprint state machine: every rule-graph node but the result node is deleted, then the blueprint is marked structurally modified and saved without compiling (compile_anim_blueprint). The transition and its settings stay; with nothing wired it is never taken unless its automatic rule is on (set_anim_transition_rule_automatic). Not an undo step. An already empty rule is a success with removed_count 0, nothing saved; a missing blueprint, machine, state or transition is an error. No need to clear first for a new rule: set_anim_transition_rule_from_bool and set_anim_transition_rule_from_comparison rebuild it; remove_anim_transition drops the whole transition. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Content path of the UAnimBlueprint (object or package path), e.g. '/Game/Characters/ABP_Hero'. |
machine_name |
string | yes | Name of a state machine on the blueprint's top-level AnimGraph, as get_anim_blueprint_info lists it in state_machines (case-insensitive), e.g. 'Locomotion'. |
source_state |
string | yes | Name of the state or conduit the transition leaves, as get_anim_state_machine_info lists it (case-insensitive), e.g. 'Idle'. |
target_state |
string | yes | Name of the state or conduit the transition enters (case-insensitive), e.g. 'Run'. |
Returns: { anim_blueprint_path, machine_name, source_state, target_state, rule_cleared, already_clear?, sink_present, removed_count, remaining_rule_nodes, saved, save_error? }
collapse_montage_segments¶
Destructive
Collapse a montage slot track's segments end-to-end (FAnimTrack::CollapseAnimSegments: no gaps, order preserved) in an undo transaction and save the montage. Segments already end-to-end are a success with applied=false and saved=false, and the montage is neither modified nor saved. An unknown slot is an error. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
slot_name |
string | yes | Name of the slot track to collapse. |
Returns: { montage_path, slot_name, segment_count, applied, saved, save_error, message }
commit_bone_changes¶
Destructive
Mark a skeleton dirty + save it. YOU DO NOT NEED THIS after add_bone / remove_bone / rename_bone / set_bone_transform: each of those already notifies the skeleton's listeners on its own. It exists for the cases those do not cover -- batched mutations made outside the modifier, or an asset import that never went through one (interop with other tools).
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Path to the USkeleton asset |
force |
boolean | no | If true, mark dirty and save even when no-op (default true) |
Returns: { asset_path, committed, force, bone_count, saved, op: "commit_bone_changes" }
compile_anim_blueprint¶
Destructive Refused during PIE
Compile an Animation Blueprint synchronously and save its package, even when the compile fails; returns status (EBlueprintStatus name), is_up_to_date, has_error and the error and warning messages with their counts. Refused while PIE runs unless force=true. Use get_anim_blueprint_info to inspect without compiling.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Path to the UAnimBlueprint asset |
Returns: { anim_blueprint_path: string, compiled: bool, status: string, is_up_to_date: bool, has_error: bool, error_count: int, warning_count: int, errors: [string], warnings: [string], saved: bool, save_error?: string }
connect_ik_goal_to_solver¶
Destructive Idempotent
Connect an existing IK Rig goal to a solver, creating that solver's per-goal effector/settings, in one undo transaction, then save the asset. This is the step that makes get_/set_ik_goal_settings work: a goal added via add_ik_goal is not attached to any solver until connected. Idempotent: re-connecting an already-connected goal is a success with already_connected:true, saved:false and a note, and nothing is saved, avoiding the duplicate the raw engine call would create. An unknown goal or out-of-range solver_index is an error. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Content path to the IK Rig asset. |
goal_name |
string | yes | Name of an existing goal (created via add_ik_goal). |
solver_index |
integer | yes | Index of the solver in the rig's solver stack. |
Returns: { ik_rig_path: string, goal_name: string, solver_index: int, connected: bool, already_connected: bool, saved: bool, save_error?: string, note?: string }
copy_anim_graph_nodes¶
Additive Refused during PIE
Copy a set of AnimGraph nodes (with internal FAnimNode settings + intra-selection wiring) between graphs. Equivalent to the editor's copy/paste: preserves each node's runtime struct properties and any links WITHIN the copied set (links to nodes outside the selection are dropped). Saves the destination ABP but does NOT recompile it -- run compile_anim_blueprint after your edits for runtime effect.
| Parameter | Type | Required | Description |
|---|---|---|---|
src_anim_blueprint_path |
string | yes | Source UAnimBlueprint path/name. |
node_ids |
array | yes | Array of source NodeGuid strings (from get_graph_nodes) to copy. |
dst_anim_blueprint_path |
string | yes | Destination UAnimBlueprint path/name. |
src_graph |
string | no | Source graph name (optional, default the top-level AnimGraph). |
dst_graph |
string | no | Destination graph name (optional, default the top-level AnimGraph). |
offset_x |
number | no | X offset added to every pasted node (optional, default 0). |
offset_y |
number | no | Y offset added to every pasted node (optional, default 0). |
Returns: { requested_count, copied_count, copied, id_map:{old->new}, imported_nodes[], missing_node_ids[], saved, save_error?, success, error? } -- copied_count counts the pasted nodes found in the destination graph; copied (and success, with saved) needs every resolved node there
create_anim_blueprint¶
Additive Refused during PIE
Create an Animation Blueprint (parent UAnimInstance) for a skeleton at package_path/name with the editor factory, compile it and save it; an existing Animation Blueprint at that path is returned unchanged (already_existed=true). Refused while PIE runs unless force=true. Returns asset_path, generated_class and target_skeleton_set.
| Parameter | Type | Required | Description |
|---|---|---|---|
package_path |
string | yes | UE content folder, e.g. /Game/MyGame |
name |
string | yes | Asset name for the new Animation Blueprint |
skeleton_path |
string | no | Optional skeleton path; defaults to /Engine/EngineMeshes/SkeletalCube_Skeleton |
Returns: { asset_path: string, name: string, skeleton_path: string, generated_class: string, is_anim_instance: bool, target_skeleton_set: bool, created: bool, already_existed: bool, saved: bool, save_error?: string }
create_anim_composite¶
Additive Idempotent
Create and save a UAnimComposite asset bound to a USkeleton, under /Game. Idempotent: a UAnimComposite already at that path is returned unchanged with already_existed=true and saved=false, and nothing is saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Asset name (e.g. 'AnimComp_Example'). |
package_path |
string | no | Target content package path where the asset is created (default /Game/Animation) |
skeleton_path |
string | no | Asset path of the target Skeleton |
Returns: { name, package_path, asset_path, composite_path, skeleton, num_segments, created, already_existed, saved, save_error, message }
create_anim_montage¶
Additive Idempotent
Create an empty-but-valid UAnimMontage asset at package_path/name, bound to skeleton_path, with a slot track named slot_name and a 'Default' section at time 0 but no animation yet, and save it; no undo transaction. Idempotent: a UAnimMontage already at that path is returned unchanged with already_existed=true and saved=false, even when its skeleton or slot differ, and nothing is saved; an asset of another class at that path is refused and nothing changes. Next, give it an animation with add_montage_segment, sections with add_montage_section and more slots with add_montage_slot, and read it back with get_montage_info. A skeleton_path that does not load is an error. A failed save (always while PIE runs) makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Asset name, no folder or extension, e.g. 'AM_Attack'. |
package_path |
string | no | Content folder as a long package path, e.g. '/Game/Animation/Montages' (default /Game/Animation; a trailing slash is ignored). |
slot_name |
string | no | Name of the slot track the montage plays on, e.g. 'DefaultSlot' or 'UpperBody' (default DefaultSlot); the AnimBlueprint must have a Slot node with that name to play it. |
skeleton_path |
string | no | Object path of the USkeleton the montage plays on, e.g. '/Game/Characters/SK_Hero_Skeleton' (default the engine's /Engine/EngineMeshes/SkeletalCube_Skeleton). |
Returns: { name, package_path, asset_path, montage_path, skeleton_path, slot_names, slot_name, slot_count, section_count, created, already_existed, saved, save_error, message }
create_anim_sequence¶
Additive Idempotent
Create a UAnimSequence at package_path/anim_name bound to the USkeleton at skeleton_path (default the engine SkeletalCube_Skeleton) and save it; its data model gets frame_rate rounded to whole fps and round(length_seconds * fps) frames, but no bone tracks or curves. Idempotent: a UAnimSequence already at that path is returned unchanged (already_existed=true, saved=false, length and rate not applied) and nothing is saved; another asset class there or an unknown skeleton is an error. A failed save makes success false, with saved=false and save_error, and the new asset stays in memory only. Fill it with set_anim_bone_track_keys (identity keys when keys is omitted) or add_anim_float_curve; inspect it with get_anim_sequence_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_name |
string | yes | Asset name (no path). |
package_path |
string | no | Target content package path where the asset is created (default /Game/MCP) |
length_seconds |
number | no | Sequence length in seconds (default 1.0) |
frame_rate |
number | no | Sampling frame rate in fps (default 30) |
skeleton_path |
string | no | Asset path of the target Skeleton |
Returns: { anim_sequence_path, anim_name, skeleton, play_length, frame_rate, num_frames, success, saved, save_error, already_existed, message }
create_blend_space¶
Additive Idempotent
Create and save a blend space asset under /Game -- a 2D UBlendSpace (default), a UBlendSpace1D, or an aim offset (UAimOffsetBlendSpace or UAimOffsetBlendSpace1D) picked by blend_space_type -- and write every axis setting it is given (name, range and grid divisions of the X axis, and of the Y axis on a 2D type) before rebuilding its runtime data. Idempotent: a blend space already at that path is returned unchanged with already_existed=true and saved=false, and nothing is written or saved (blend_space_type then reports the class it already has). An unknown blend_space_type, one that contradicts is_1d, an axis minimum not below its maximum, a grid below 1 or a Y-axis param on a 1D type is refused before anything is created. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Asset name (e.g. 'BS_Example'). |
asset_name |
string | no | Alias of name. |
package_path |
string | no | Target content package path where the asset is created (default /Game/Animation) |
blend_space_type |
string | no | Optional class to create: BlendSpace (2D, default) | BlendSpace1D | AimOffset (2D UAimOffsetBlendSpace) | AimOffset1D (UAimOffsetBlendSpace1D), any case; BlendSpace2D, AimOffsetBlendSpace and AimOffsetBlendSpace1D are accepted too. Omitted, is_1d picks BlendSpace1D or BlendSpace. |
is_1d |
boolean | no | If true create a 1D BlendSpace, else 2D (default false); when blend_space_type is also given they must agree. |
axis_name |
string | no | X-axis display name (default 'Speed'; 'Yaw' for an aim offset) |
axis_min |
number | no | X-axis minimum value (default 0; -90 for an aim offset); must be below axis_max. |
min_value |
number | no | Alias of axis_min. |
axis_max |
number | no | X-axis maximum value (default 100; 90 for an aim offset) |
max_value |
number | no | Alias of axis_max. |
axis_grid |
integer | no | Optional X-axis grid divisions, an integer >= 1 (default: the engine's 4). |
num_grid_points |
number | no | Alias of axis_grid. |
y_axis_name |
string | no | Optional Y-axis display name, 2D types only (default 'Pitch' for an aim offset; otherwise the engine's 'None' is kept). |
y_axis_min |
number | no | Optional Y-axis minimum, 2D types only (default 0; -90 for an aim offset); must be below y_axis_max. |
y_axis_max |
number | no | Optional Y-axis maximum, 2D types only (default 100; 90 for an aim offset). |
y_axis_grid |
integer | no | Optional Y-axis grid divisions, 2D types only, an integer >= 1 (default: the engine's 4). |
skeleton_path |
string | no | Asset path of the target Skeleton (default /Engine/EngineMeshes/SkeletalCube_Skeleton) |
Returns: { name, package_path, asset_path, blend_space_path, blend_space_type, is_1d, skeleton_path, axis_name, axis_min, axis_max, axis_grid_num, y_axis_name?, y_axis_min?, y_axis_max?, y_axis_grid_num?, sample_count, created, already_existed, saved, save_error, message }
create_control_rig_blueprint¶
Additive Idempotent Refused during PIE
Create a Control Rig Blueprint (non-modular) at package_path/name with UControlRigBlueprintFactory, compile it and save it. Idempotent: an existing Control Rig Blueprint there is returned unchanged (already_existed=true). Returns asset_path, generated_class, is_control_rig and saved; refused while PIE runs unless force is set.
| Parameter | Type | Required | Description |
|---|---|---|---|
package_path |
string | yes | Content folder starting with "/", e.g. "/Game/Rigs"; a trailing slash is ignored |
name |
string | yes | Asset name of the Control Rig Blueprint, e.g. "CR_Hero" |
Returns: { asset_path: string, name: string, generated_class: string, is_control_rig: bool, created: bool, already_existed: bool, saved: bool, save_error: string }
create_editable_skeleton¶
Additive Idempotent
Create a USkeleton at package_path/name by duplicating an existing skeleton (default /Engine/EngineMeshes/SkeletalCube_Skeleton), then save it, so add_bone, set_bone_transform, add_virtual_bone and the other bone tools edit a project copy instead of engine content. Idempotent by path: a skeleton already there is returned untouched with created=false and saved=false. A package_path that does not start with a slash, a source that does not exist or is not a skeleton, or another kind of asset at the target is an error, and nothing is created. A failed save, as during PIE, makes success false with save_error and keeps the new skeleton in memory. A mesh to go with it: duplicate_asset on a skeletal mesh (destination_path); inspect the result: get_skeleton_info (load_full_data=true).
| Parameter | Type | Required | Description |
|---|---|---|---|
package_path |
string | yes | UE content folder starting with a slash, e.g. /Game/MyGame |
name |
string | yes | Asset name for the new skeleton, e.g. "SK_Creature_Skeleton"; with package_path it gives the asset path. |
source_skeleton |
string | no | Asset path of the skeleton to duplicate, e.g. "/Engine/EngineMeshes/SkeletalCube_Skeleton", which is also the default. |
Returns: { asset_path: string, name: string, source: string, bone_count: int, created: bool, saved: bool, save_error?: string }
create_ik_retargeter¶
Additive
Create and save a UIKRetargeter asset wiring source + target IK Rigs. An existing retargeter at that path is rewired and saved when either rig differs; when it already uses both rigs nothing changes, nothing is saved (saved=false) and a note says so. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
package_path |
string | yes | UE content folder, e.g. /Game/MyGame |
name |
string | yes | Asset name for the new IK Retargeter |
source_ik_rig_path |
string | yes | Path to the source UIKRigDefinition (copy FROM) |
target_ik_rig_path |
string | yes | Path to the target UIKRigDefinition (copy TO) |
Returns: { asset_path: string, name: string, source_ik_rig: string, target_ik_rig: string, created: bool, already_existed: bool, saved: bool, save_error?: string, note?: string }
create_ik_rig¶
Additive Idempotent
Create and save a UIKRigDefinition asset and set its source skeletal mesh. Idempotent: an existing rig is loaded and only given the mesh, then saved, when it has another one; when it already has that mesh, or the mesh does not load or the engine refuses it (skeletal_mesh_set false), nothing changes, nothing is saved and a note says why. The default skeletal_mesh_path is /Engine/EngineMeshes/SkeletalCube. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
package_path |
string | yes | UE content folder, e.g. /Game/MyGame |
name |
string | yes | Asset name for the new IK Rig |
skeletal_mesh_path |
string | no | Optional USkeletalMesh asset path; defaults to /Engine/EngineMeshes/SkeletalCube |
Returns: { asset_path: string, name: string, skeletal_mesh: string, skeletal_mesh_set: bool, created: bool, already_existed: bool, saved: bool, save_error?: string, note?: string }
create_locomotion_anim_blueprint¶
Additive Idempotent Refused during PIE
Create in one call an Animation Blueprint for a skeleton with a locomotion state machine: the machine, its states (Idle, Walk, Run by default), the entry wired to the first state and a transition each way between consecutive states, then compile and save it. Use it as the quick start for a character; for any other layout build the machine from a JSON spec with build_anim_state_machine, or step by step with create_anim_blueprint, add_anim_state_machine, add_anim_state and add_anim_transition. What it leaves to do: the states are empty (put an animation in each with add_graph_node) and the transitions have no rule, so they are never taken (set_anim_transition_rule_from_comparison, _from_bool or _automatic). Idempotent: an existing Animation Blueprint, machine, state or transition is reused, not duplicated, and an entry already wired is left alone; an existing blueprint is kept even if its skeleton is not skeleton_path. Compile errors are not reported here (check with compile_anim_blueprint); a failed save is an error. Refused while PIE runs unless force=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
package_path |
string | yes | Content folder for the asset, e.g. "/Game/Characters/Hero/Animation" (a trailing slash is ignored). |
asset_name |
string | yes | Name of the Animation Blueprint, e.g. "ABP_Hero"; the asset is package_path/asset_name. |
skeleton_path |
string | yes | Path of the USkeleton asset, e.g. "/Game/Characters/Hero/SK_Hero_Skeleton"; it must load even when the blueprint already exists. |
machine_name |
string | no | Name of the state machine node in the AnimGraph (default "Locomotion"); a machine of that name is reused. |
states |
array | no | State names in order, e.g. ["Idle", "Walk", "Run", "Sprint"] (default ["Idle", "Walk", "Run"]); the first is the entry state, and transitions link each state with the next one. |
add_transitions |
boolean | no | Whether to add the two-way transitions between consecutive states, with a 0.2 s crossfade (default true); false leaves the states unlinked. |
Returns: { anim_blueprint_path, package_path, skeleton_path, machine_name, state_count, transition_count, entry_wired, entry_state, note_states_are_empty, already_existed, saved, save_error? }
create_pose_asset¶
Additive Idempotent
Create an empty UPoseAsset (no poses) at package_path/name, bound to the USkeleton at skeleton_path (default the engine SkeletalCube_Skeleton), and save it; no undo transaction. Idempotent: a UPoseAsset already at that path is returned untouched with already_existed=true and saved=false, even when bound to another skeleton, and nothing is saved. A name taken by another asset class or an unknown skeleton is an error, and a failed save makes success false, with saved=false and save_error. Add poses with add_pose_to_pose_asset; to build one from animation frames use create_pose_asset_from_anim_sequence.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Asset name (e.g. 'Pose_Example'). |
package_path |
string | no | Target content package path where the asset is created (default /Game/Animation) |
skeleton_path |
string | no | Asset path of the target Skeleton |
Returns: { name, package_path, asset_path, pose_asset_path, skeleton, num_poses, created, already_existed, saved, save_error, message }
create_pose_asset_from_anim_sequence¶
Additive Idempotent
Create a UPoseAsset built from a real UAnimSequence's frames and save it. Idempotent: a UPoseAsset already at that path is returned unchanged with already_existed=true and saved=false, and nothing is saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
pose_asset_name |
string | yes | Name for the new UPoseAsset. |
anim_sequence_path |
string | yes | Object path of the source UAnimSequence. |
package_path |
string | no | Target content package path where the asset is created (default /Game/Animation) |
Returns: { pose_asset_path, pose_asset_name, source_anim, skeleton_path, num_poses, created, success, already_existed, saved, save_error }
create_pose_search_database¶
Additive Idempotent
Create a UPoseSearchDatabase data asset at package_path/name (package_path defaults to /Game/MCP) whose Schema is the UPoseSearchSchema at schema_path, with no animation assets yet, then save it. Idempotent: a database already at that path is returned unchanged with already_existed true and saved false, nothing saved, its schema_path read from it; the requested schema is not applied, and not even loaded. An invalid path, an asset of another class there, or for a new database a schema that does not load, is an error; a failed save of a new database makes success false. Create the schema with create_pose_search_schema; change the schema of an existing database with set_pose_search_database_schema; add animations with add_animation_asset_to_pose_search_database, then run build_pose_search_database_index.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Asset name (e.g. 'PoseSearchDatabase_Example'). |
schema_path |
string | yes | Asset path of an existing UPoseSearchSchema (required); loaded only for a database this call creates. |
package_path |
string | no | Target content package path (default /Game/MCP). |
Returns: { name, package_path, asset_path, database_path, schema_path, schema_cardinality, animation_asset_count, created, already_existed, saved, save_error, message }
create_pose_search_schema¶
Additive Idempotent
Create a UPoseSearchSchema data asset at package_path/name (package_path defaults to /Game/MCP) bound to the USkeleton at skeleton_path, with sample_rate clamped to 1..240 and the default Trajectory and Pose channels, then save it. The default Pose channel uses the UE mannequin's foot and hand bones, so on a skeleton without them (the default SkeletalCube one included) the schema does not finalize: finalized false, schema_cardinality 0 and a finalize_warning, and build_pose_search_database_index refuses it until that channel goes (remove_pose_search_channel_from_schema) or the skeleton changes. Idempotent: a schema already at that path is returned unchanged with already_existed true and saved false, nothing saved, its skeleton_path and skeleton_paths read from it; the requested skeleton and sample_rate are not applied, and that skeleton is not even loaded. An invalid path, an asset of another class there, or for a new schema a skeleton that does not load, is an error; a failed save of a new schema makes success false. Next create a database with create_pose_search_database; add channels with add_pose_search_channel_to_schema, change settings with set_properties, and inspect it with get_pose_search_schema_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Asset name (e.g. 'PoseSearchSchema_Example'). |
package_path |
string | no | Target content package path (default /Game/MCP); trailing slashes are stripped. |
skeleton_path |
string | no | Asset path of the USkeleton (default /Engine/EngineMeshes/SkeletalCube_Skeleton); loaded only for a schema this call creates. |
sample_rate |
integer | no | Schema SampleRate (int, ClampMin=1, ClampMax=240; default 30); out-of-range values are clamped, and it is applied only to a schema this call creates. |
Returns: { name, package_path, asset_path, schema_path, skeleton_path, skeleton_paths, sample_rate, schema_cardinality, channel_count (finalized), source_channel_count, finalized, finalize_warning?, created, already_existed, saved, save_error, message }
create_retarget_pose¶
Additive
Create a new retarget pose for editing in an IK Retargeter through its controller, then save the asset. The engine makes the name unique, so read pose_name back. The pose is set as the current pose after creation, ready for bone rotation edits via set_retarget_pose_bone_rotation. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Content path to the IK Retargeter asset. |
pose_name |
string | yes | Name for the new retarget pose |
source_or_target |
string | no | Optional "Source" or "Target" scope; defaults to "Target" |
Returns: { ik_retargeter_path: string, pose_name: string, source_or_target: string, success: bool, saved: bool, save_error?: string }
create_skeletal_mesh_morph_target¶
Additive Idempotent
Register a new morph target on a skeletal mesh asset in memory only, for the rest of the editor session: it is never saved (persisted_to_disk is always false), and a mesh rebuild or reload drops any morph the mesh's imported source data does not contain. Each LOD gets one tiny seed delta on vertex 0 so the morph counts as valid; write real deltas with set_morph_target_deltas. Marks the mesh dirty; it is not an undo step. Idempotent: an existing name returns created=false and already_exists=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset (e.g. /Game/MyGame/SKM_Example) |
morph_target_name |
string | yes | Name for the new morph target |
Returns: { morph_target_name: string, skeletal_mesh_path: string, created: bool, persisted_to_disk: bool, total_morph_targets: int, note: string }
disconnect_ik_goal_from_solver¶
Destructive Idempotent
Disconnect a goal from a solver, removing that solver's per-goal effector/settings, through the IK Rig controller (one undo transaction), then save the asset. Inverse of connect_ik_goal_to_solver. Idempotent: disconnecting a goal that isn't connected is a success with was_connected:false, saved:false and a note, and nothing is saved. An out-of-range solver_index is an error. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Content path to the IK Rig asset. |
goal_name |
string | yes | Name of the goal. |
solver_index |
integer | yes | Index of the solver in the rig's solver stack. |
Returns: { ik_rig_path: string, goal_name: string, solver_index: int, connected: bool, was_connected: bool, saved: bool, save_error?: string, note?: string }
evaluate_pose_search_query¶
Read-only
Run a live motion-matching query on a PIE/Game actor against a loaded UPoseSearchDatabase (UPoseSearchLibrary::MotionMatch) and return the best-match asset + search cost, plus the query trajectory. Diagnoses why a chooser returns null. Best-effort: per-channel cost is not exposed by the BlueprintPure result.
| Parameter | Type | Required | Description |
|---|---|---|---|
database_path |
string | yes | UPoseSearchDatabase asset path to search (required). |
world |
string | no | Which world to resolve: absent (default) = prefer the live PIE/Game world | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'pie'/'game' force the live session (errors if none running) | 'editor' forces the editor world. |
actor_name |
string | no | Actor name or label whose AnimInstance drives the query. Omitted = the first player controller's pawn. |
pose_history_name |
string | no | Tag of the PoseSearchHistoryCollector anim-graph node used to build the query (default 'PoseHistory'). |
max_trajectory_samples |
integer | no | Cap on emitted query trajectory samples (<=0 = all; default 0). |
Returns: { world_mode, actor_name, actor_resolved, anim_instance_class, pose_history_name, pose_history_found, database_path, query_trajectory_samples[], trajectory_sample_count, is_trajectory_empty, has_match, best_match_asset, best_match_database, best_cost, selected_time, is_continuing_pose_search, wanted_play_rate, is_mirrored, is_looping, per_channel_cost[], note, world_name, world_package, world_type, net_mode, pie_instance }
get_active_montages¶
Read-only
Report the animation montages active right now on an actor's skeletal mesh in a running Play-in-Editor session (or the world that world selects), without changing anything: the top montage and every montage still blending out, each with its current section, position (seconds and normalized), length, play rate, blend weights, playing and active flags and the slots it plays on. Use it to debug a montage that does not play, cuts off or blends out too early while the game runs; to read a montage asset's sections, slots and notifies use get_montage_info instead. No montage playing gives montage_count 0, not an error. No resolvable world (for the default, PIE not running), an actor not found in that world, a component that is not found, or a mesh without an anim instance is an error. world_name, world_package, world_type, net_mode and pie_instance say which world answered.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor |
string | yes | Live actor in the selected world, by object name, editor label or full object path (whole string, case-insensitive), e.g. "BP_Hero_C_0". |
component |
string | no | Optional skeletal mesh component name on that actor, e.g. "CharacterMesh0" (whole name, case-insensitive); omitted uses the actor's first skeletal mesh component. |
world |
string | no | Which world to resolve the actor in: absent/'pie' (default, ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'editor' | 'game' (alias of 'pie'). |
Returns: { actor, actor_name, component, world, anim_instance_class, montage_count, is_any_montage_playing, top_montage_id, enumeration, montages: [{ index, montage_path, montage_name, is_top, current_section, position, normalized_position, length, play_rate, blend_weight, desired_weight, blend_time, is_playing, is_active, instance_id, slots:[string] }], world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }
get_anim_asset_info¶
Read-only
Load any animation asset and report its class, skeleton and asset_type (montage, composite, pose, sequence, blendspace or animation_asset) plus the counts of that type: sections/slots/notifies, segments, poses/tracks/curves, length, samples. Read-only; get_montage_info, get_anim_sequence_info and get_blend_space_samples give detail.
| Parameter | Type | Required | Description |
|---|---|---|---|
asset_path |
string | yes | Path to the animation asset (UAnimMontage, UAnimComposite, UPoseAsset, UAnimSequence, or UBlendSpace) |
Returns: { asset_path, class, skeleton, num_segments, num_poses, section_count, slot_count, notify_count, sequence_length, rate_scale, num_tracks, num_curves, sample_count, asset_type }
get_anim_blueprint_info¶
Read-only
Read an Animation Blueprint without compiling or changing it: its Asset Registry identity (object path, class, package, is_loaded, and the size and timestamp of its .uasset, left out when no file is on disk), target skeleton and its bone count, parent and generated class, is_anim_instance, is_abstract, is_template, graph_count, and the state machines at the top level of every function graph (the AnimGraph included) with their graph and state counts (conduits not counted; machines nested inside states are not listed). anim_blueprint_path takes an object path, a package path or a short name searched under /Game; no match is an error, and so is a short name several anim blueprints share, with the candidates listed.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Object path, package path or short name of the UAnimBlueprint asset |
Returns: { asset_path: string, asset_class: string, package_name: string, is_loaded: bool, file_size_bytes: number?, file_size_kb: number?, file_size_mb: number?, last_modified: string?, target_skeleton: string, target_skeleton_set: bool, skeleton_bone_count: int, parent_class: string, generated_class: string, is_anim_instance: bool, is_abstract: bool, is_template: bool, graph_count: int, state_machine_count: int, state_machines: [{ name: string, graph_name: string, state_count: int }] }
get_anim_curve_data¶
Read-only
Read one curve of a UAnimSequence's data model without changing it: for a float curve its flags, num_keys and every key as a time/value pair; for a transform curve only its flags and num_keys summed over translation, rotation and scale (no key values). A curve that does not exist is still a success with found=false and no num_keys, flags or keys. Get the curve names first from get_anim_sequence_info (it lists the float and transform curves); rekey a float curve with add_anim_float_curve, retime it with scale_anim_curve, change flags with set_anim_curve_flags. For a standalone UCurveFloat asset use evaluate_curve_at_time instead. A path that does not load as a UAnimSequence is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Object path of the UAnimSequence, e.g. '/Game/Anims/A_Walk' or '/Game/Anims/A_Walk.A_Walk'. |
curve_name |
string | yes | Exact curve name as get_anim_sequence_info lists it, e.g. 'FootLock_L'. |
curve_type |
string | no | "float" (default) or "transform", case ignored; any other value reads a float curve. |
Returns: { anim_sequence_path, curve_name, curve_type, found, num_keys, flags, keys: [{ time, value }] }
get_anim_notifies¶
Read-only
List the notify events of a UAnimSequence without changing it: name, trigger time, duration, track_index and the notify_class or notify_state_class of each, plus num_notifies, and the names of its notify tracks in track order (track_names, track_count). Use get_montage_info for the notifies of a montage.
| Parameter | Type | Required | Description |
|---|---|---|---|
animation_path |
string | yes | Full asset path to the UAnimSequence. |
Returns: { animation_path, num_notifies, notifies: [{ name, time, duration, track_index, notify_class?, notify_state_class? }], track_names: [string], track_count }
get_anim_sequence_info¶
Read-only
Summarise one animation sequence (a UAnimSequence asset) from its data model: the skeleton it plays on, its length, frame rate and frame count, the names of its bone tracks, float curves and transform curves with their counts, how many sync markers it has, whether root motion is enabled, and its retarget source and reference-pose sequence. Read-only: it changes nothing and needs no PIE. A path that does not load as an AnimSequence is refused, a montage or blend space included -- get_anim_asset_info reads any animation asset. The keys of one curve come from get_anim_curve_data and the notify events from get_anim_notifies.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the sequence, e.g. "/Game/Anims/Run_Fwd" (package or object path). |
sequence_path |
string | no | Alias of anim_sequence_path; read only when anim_sequence_path is absent. |
Returns: { anim_sequence_path, skeleton, play_length, frame_rate, num_frames, num_bone_tracks, num_float_curves, transform_curve_count, bone_tracks: [string], float_curves: [string], transform_curves: [string], num_sync_markers, enable_root_motion, retarget_source, ref_pose_seq, success }
get_anim_state_machine_info¶
Read-only
Read the nodes of one state machine of an Animation Blueprint without compiling or changing it: state_count counts the states, conduit_count the conduits and transition_count the transitions; states lists every state, conduit and alias node with its kind (class name) and graph position, transitions excluded. It also checks the machine by those counts: no states is an error, one an info, several without transitions a warning (is_valid is false only on an error); compile_anim_blueprint is the check that the machine compiles.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Asset path of the UAnimBlueprint |
state_machine_name |
string | yes | Name of a state machine in the top-level AnimGraph, matched without case (get_anim_blueprint_info lists them). |
Returns: { state_machine, state_count, conduit_count, transition_count, states:[{name,kind,x,y}], is_valid, errors:[string], warnings:[string], info:[string] }
get_blend_space_samples¶
Read-only
Read every sample of a UBlendSpace or UBlendSpace1D in index order (animation path, blend_x/blend_y/blend_z, rate_scale) plus num_samples and the per-axis input smoothing under interpolation. Read-only; change samples with add_blend_space_sample, set_blend_space_sample or remove_blend_space_sample.
| Parameter | Type | Required | Description |
|---|---|---|---|
blendspace_path |
string | yes | Full asset path to the UBlendSpace. |
Returns: { animation, blend_x, blend_y, blend_z, rate_scale, blendspace_path, num_samples, samples }
get_bone_transform¶
Read-only
Read the LOCAL reference-pose transform of a bone (parent-relative, not component space). Exact inverse of set_bone_transform: it reads the same raw ref-pose array that one writes, so a read-modify-write round trip is lossless.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Path to the USkeleton asset |
bone_name |
string | yes | Bone to read |
Returns: { asset_path, bone_name, bone_index, found, location:[x,y,z], rotation:[p,y,r], scale:[x,y,z], bone_count, op: "get_bone_transform" }
get_ik_bone_settings¶
Read-only
Get bone-specific settings for a bone within a solver. FullBodyIK returns snake_case keys (rotation/position stiffness, axis limits Free/Limited/Locked, min/max angles, preferred angles); StretchLimb (the only other solver with per-bone settings) is serialized generically (camelCase: squashDirection vector). Only FullBodyIK and StretchLimb support per-bone settings; others return a note.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Content path to the IK Rig asset. |
solver_index |
integer | yes | Index of the solver. |
bone_name |
string | yes | Name of the bone to query settings for. |
Returns: { ik_rig_path: string, solver_index: int, bone_name: string, settings: object }
get_ik_goal_settings¶
Read-only
Get goal-specific settings for a goal connected to a solver. FullBodyIK returns snake_case keys (chain_depth, strength_alpha, pull_chain_alpha, pin_rotation); BodyMover (the only other solver with per-goal settings) is serialized generically (camelCase: influenceMultiplier, boneName). The goal must be connected to the solver first (connect_ik_goal_to_solver), else a note explains that. Solvers without per-goal settings return a note.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Content path to the IK Rig asset. |
solver_index |
integer | yes | Index of the solver. |
goal_name |
string | yes | Name of the goal to query settings for. |
Returns: { ik_rig_path: string, solver_index: int, goal_name: string, settings: object }
get_ik_retargeter_info¶
Read-only
Read the global structure of an IK Retargeter via its controller: source/target IK Rigs, the op-stack, per-op chain mappings, and the current poses. Read-only. Chain mappings are per-op in 5.6+ (there is no global RootSettings on the UIKRetargeter in 5.8; detailed root/global settings live inside the ops themselves).
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Content path to the UIKRetargeter asset. |
Returns: { asset_path: string, source_ik_rig: string, target_ik_rig: string, op_count: int, ops: [{ op_index, op_name, enabled, parent_op, op_type }], chain_mappings: [{ op_name, target_chain, source_chain }], source: { current_pose, pelvis_bone, root_offset: {x,y,z} }, target: { current_pose, pelvis_bone, root_offset: {x,y,z} } }
get_ik_rig_info¶
Read-only
Read an IK Rig asset: its skeletal mesh, the number of solvers, and every goal and retarget chain, or with chain_name just that retarget chain (start_bone, end_bone and the IK goal it drives) plus whether the rig has it. Read-only; a chain_name the rig does not have is not an error but found=false and an empty chains list. Solvers are counted, not listed: get_ik_solver_details reads one by index.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset (an IK Rig, not an IK Retargeter) |
chain_name |
string | no | Optional. Name of one retarget chain, matched without case: chains then lists only that chain and found says whether the rig has it. retarget_chain_count still counts every chain. |
Returns: { asset_path: string, solver_count: int, goal_count: int, retarget_chain_count: int, skeletal_mesh: string, goals: [{ goal_name, bone_name }], chains: [{ chain_name, start_bone, end_bone, goal_name }], chain_name?: string, found?: bool }
get_ik_solver_details¶
Read-only
Read one solver of an IK Rig asset by its 0-based stack index: solver_type (the solver struct name, e.g. "IKRigFullBodyIKSolver") and solver_type_canonical (FullBodyIK, Limb, ...), unique_name ("<index+1> - <display name>"), enabled, start and end bone (end_bone "None" for a solver type without one), the names of the goals connected to it, and its solver-specific settings -- FullBodyIK with the curated snake_case keys set_ik_solver_settings takes, every other solver type serialized generically from its live settings struct (camelCase property names). Read-only; an out-of-range solver_index or a rig that does not load is an error. get_ik_rig_info reads the goals and chains of the whole rig.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
solver_index |
integer | yes | 0-based solver index |
Returns: { asset_path: string, solver_index: int, solver_type: string, solver_type_canonical: string, unique_name: string, enabled: bool, start_bone: string, end_bone: string, connected_goal_count: int, connected_goals: [string], settings: object }
get_montage_info¶
Read-only
Read one UAnimMontage asset without changing it: its skeleton, the counts and names of its composite sections, slot tracks and notifies, its blend-in/out times and modes, its auto blend-out settings and its sync group. For a short summary of any animation type use get_anim_asset_info; for the montages playing on a PIE actor use get_active_montages. Change the blend and sync fields with set_properties, sections with add_montage_section / remove_montage_section, slots with add_montage_slot, notifies with add_montage_notify. A path that does not load as a UAnimMontage is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Object path of the UAnimMontage, package form '/Game/Anims/AM_Attack' or object form '/Game/Anims/AM_Attack.AM_Attack'; list montages with get_assets_by_type (class AnimMontage). |
Returns: { montage_path, skeleton_path, section_count, slot_count, notify_count, sections, slots, notifies, blend_in, blend_out, blend_mode_in, blend_mode_out, enable_auto_blend_out, blend_out_trigger_time, sync_group, sync_slot_index }
get_morph_target_deltas¶
Read-only
Read back the vertex deltas of a morph target on a specific LOD (inverse of set_morph_target_deltas).
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset |
morph_target_name |
string | yes | Name of the morph target to read |
lod_index |
integer | no | LOD index to read (default 0) |
max_deltas |
integer | no | Optional cap on how many deltas to return (default 5000); the response is honestly marked truncated if the LOD has more |
Returns: { morph_target_name: string, lod_index: int, total_deltas: int, returned_deltas: int, truncated: bool, deltas: [{vertex_index, position_delta:{x,y,z}, normal_delta:{x,y,z}}] }
get_motion_warping_component_info¶
Read-only
Read the UMotionWarpingComponent of an actor without changing anything: whether warp windows are also searched in animations inside montages, every warp target (name, location, rotation, the component it follows or null, bone name, follow flag, location and rotation offsets, and location_offset_direction as the enum's integer), the modifier count, the owner adapter class (None when unset) and the number of switch-off conditions (a protected array read by reflection; -1 if the engine renames it). Warp targets are transient, so on an editor actor they are the ones added this session with add_motion_warping_target. Change a target with set_motion_warping_target, take one out with remove_motion_warping_target, and flip the montage search with set_properties on "<actor>.<component name>" (property bSearchForWindowsInAnimsWithinMontages). An actor that is not found, or one without a UMotionWarpingComponent (add_motion_warping_component adds it), is an error. For a generic component property dump use get_object_info on "<actor>.<component>".
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_path |
string | yes | Actor as a full object path ('/Game/Maps/Arena.Arena:PersistentLevel.BP_Hero_C_1'), or the internal name or label of an editor-world actor ('BP_Hero_C_1', 'Hero'). |
Returns: { actor_path: string, b_search_for_windows_in_anims_within_montages: bool, warp_target_count: int, modifier_count: int, owner_adapter_class: string, switch_off_condition_count: int, warp_targets: array }
get_pose_search_database_info¶
Read-only
Read a UPoseSearchDatabase without changing it: its schema path, search mode (BruteForce, PCAKDTree, VPTree or EventOnly), KD-tree neighbours, principal components, base cost bias and tags; every animation entry with its index, enabled flag, sampling range (0 to 0 means the whole asset) and asset path; and the schema's channels with class and weight. Use the entry index with remove_animation_asset_from_pose_search_database; for the schema's own settings and finalized channels use get_pose_search_schema_info; to search it at runtime use evaluate_pose_search_query. A database with no schema gives an empty schema_path and no channels rather than an error. schema_cardinality is not recomputed here, so it can read 0 for a schema loaded but not yet finalized (build_pose_search_database_index finalizes it). A path that does not load as a UPoseSearchDatabase is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
database_path |
string | yes | Asset path of the UPoseSearchDatabase, e.g. "/Game/Anim/PSD_Locomotion", as create_pose_search_database returns it (required). |
Returns: { database_path, schema_path, pose_search_mode, kd_tree_query_num_neighbors, number_of_principal_components, base_cost_bias, tags, schema_cardinality, animation_asset_count, animation_assets[], channel_count, channels[] }
get_pose_search_runtime_state¶
Read-only
Read-only report of the live motion-matching state on a PIE/Game actor (why a chooser returns null): its AnimInstance, its MotionTrajectory samples, whether a PoseSearchHistoryCollector node named pose_history_name exists, and (optionally) the target database's schema/channels.
| Parameter | Type | Required | Description |
|---|---|---|---|
world |
string | no | Which world to resolve: absent (default) = prefer the live PIE/Game world, else the editor world | 'server' (the PIE world with authority -- what a server-driven character lives in) | 'client' | 'pie:N' | 'pie'/'game' force the live session (errors if none running) | 'editor' forces the editor world. |
actor_name |
string | no | Actor name or label to inspect. Omitted = the first player controller's pawn (the locally-controlled character). |
pose_history_name |
string | no | Tag of the PoseSearchHistoryCollector anim-graph node to look up on the AnimInstance (default 'PoseHistory'). A missing node is the usual reason a query builds an empty pose portion. |
database_path |
string | no | Optional UPoseSearchDatabase asset path; when given, its schema_path/schema_cardinality/channels/animation_asset_count are included. |
max_trajectory_samples |
integer | no | Cap on emitted trajectory samples (<=0 = all; default 0). |
Returns: { world_mode, actor_name, actor_resolved, actor_resolved_by, skeletal_mesh_component, anim_instance_class, pose_history_name, pose_history_found, trajectory:{found,component,property,sample_count,is_trajectory_empty,samples[]}, is_trajectory_empty, database?:{database_path,schema_path,schema_cardinality,channel_count,channels[],animation_asset_count}, note, world_name, world_package, world_type, net_mode, pie_instance }
get_pose_search_schema_info¶
Read-only
Read-only walk of a UPoseSearchSchema's public fields + FinalizedChannels. An empty finalized_channels / is_finalized:false is NOT a bug in this tool: the schema only gets finalized by AddDefaultChannels() or by a PostEditChange() on it, so a freshly authored schema reports none until something triggers that.
| Parameter | Type | Required | Description |
|---|---|---|---|
schema_path |
string | yes | Asset path of the UPoseSearchSchema (required). |
Returns: { schema_path, sample_rate, schema_cardinality, number_of_permutations, permutations_sample_rate, permutations_time_offset, add_data_padding: bool, inject_additional_debug_channels: bool, draw_inject_additional_debug_channels: bool, roled_skeletons: [{ role_name, skeleton_path, mirror_table_path }], roled_skeleton_count, is_finalized: bool, channel_count, finalized_channels: [{ class, channel_name, weight }], note?: string } -- note only when is_finalized is false.
get_retarget_poses¶
Read-only
List every retarget pose of an IK Retargeter, for the source and the target side, without changing anything: per pose its name, whether it is the side's current pose, its root translation offset and the per-bone rotation deltas it stores (only the bones that were rotated), as quaternions with the same quat_x/quat_y/quat_z/quat_w keys set_retarget_pose_bone_rotation takes. Use it to check a pose before or after set_retarget_pose_bone_rotation; create one with create_retarget_pose, delete one with remove_retarget_pose. For the retargeter's rigs, chains and op stack use get_ik_retargeter_info, for one op's settings get_retargeter_op_info. A path that does not load as a UIKRetargeter is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | IK Retargeter asset as a package or object path, e.g. "/Game/Retarget/RTG_Manny_To_Hero". |
Returns: { asset_path: string, source: [{ name, is_current, root_translation_offset: {x,y,z}, bone_rotations: [{ bone, quat_x, quat_y, quat_z, quat_w }] }], target: [ ... same shape ... ] }
get_retargeter_op_info¶
Read-only
Read one retarget op's live settings struct from an IK Retargeter by op index. Read-only (no save). The settings keys are the op settings UPROPERTY names with only the first character lower-cased (FJsonObjectConverter convention), e.g. FK Chains op exposes lODThreshold, bEnabled, bDebugDraw, chainDrawSize, bDrawChainLines. op_type is the settings struct name (e.g. IKRetargetFKChainsOpSettings), which differs from get_ik_retargeter_info.ops[].op_type (the op struct name).
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Content path to the UIKRetargeter asset. |
op_index |
integer | yes | 0-based index of the op in the retargeter's op stack. |
Returns: { asset_path: string, op_index: int, op_name: string, op_type: string, enabled: bool, settings: object }
get_rig_control_value¶
Read-only
Read a Control Rig control's current value (typed per ERigControlType) and its limit min/max. Round-trips set_rig_control_value / set_rig_control_limits.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Path to the UControlRigBlueprint asset. |
control_name |
string | yes | Name of an existing control element. |
Returns: { asset_path: string, control_name: string, control_type: string, value: any, limit_enabled: bool, min: number?, max: number? }
get_rig_hierarchy¶
Read-only
Read every element of a Control Rig Blueprint hierarchy in traversal order as elements [{name, type}], plus bone_count, null_count, control_count, curve_count, other_count (sockets, connectors and the rest) and total. Read-only: nothing is compiled or saved.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Control Rig Blueprint asset path, e.g. "/Game/Rigs/CR_Hero" |
Returns: { asset_path: string, bone_count: int, null_count: int, control_count: int, curve_count: int, other_count: int, total: int, elements: [{name, type}] }
get_skeletal_mesh_info¶
Read-only
Summarise a skeletal mesh asset in one call: its LOD, material slot, morph target, socket and bone counts, the names of its first 20 bones in reference-skeleton order (bone_names), and each LOD's vertex and section count. Read-only: it changes nothing; a path that does not load as a USkeletalMesh is an error. Start here, then drill into one area: get_skeletal_mesh_lod_info for one LOD's settings, get_skeletal_mesh_section_info for its sections, get_skeletal_mesh_material_slots for slot names, get_skeletal_mesh_morph_targets for morph names, and get_skeleton_info with load_full_data for bones past the first 20.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path of the USkeletalMesh asset (object or package path), e.g. '/Game/Characters/SKM_Hero'. |
Returns: { skeletal_mesh_path: string, num_lods: int, num_materials: int, num_morph_targets: int, num_sockets: int, num_bones: int, bone_names: [string], lod_info: [{lod_index, num_verts, num_sections}] }
get_skeletal_mesh_lod_info¶
Read-only
Read the settings of one LOD of a skeletal mesh asset found by content path: screen size, material map entry count, CPU access, the build settings, the reduction settings and the flat LOD scalars (hysteresis, prioritization weight, morph error tolerance, skin cache usage, mesh deformer). Enums come back by name, e.g. "SMTC_NumOfTriangles" or "Auto", a form the setters accept. Nothing is written. A mesh that does not load, or a lod_index outside its LOD count, is an error. Each block has its setter: set_skeletal_mesh_lod_build_settings, set_skeletal_mesh_lod_reduction_settings, and set_skeletal_mesh_lod_settings (screen_size included). Per-LOD vertex counts: get_skeletal_mesh_info; triangle counts: get_asset_lod_settings; sections: get_skeletal_mesh_section_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset, e.g. "/Game/Characters/SKM_Hero" |
lod_index |
integer | no | 0-based LOD index to read (default 0); it must be below the LOD count of the mesh |
Returns: { lod_index: int, screen_size: float, num_material_map_entries: int, allow_cpu_access: bool, build_settings: {...}, reduction_settings: {...}, lod_hysteresis: float, weight_of_prioritization: float, morph_target_position_error_tolerance: float, skin_cache_usage: string, allow_mesh_deformer: bool }
get_skeletal_mesh_material_slots¶
Read-only
List the material slots of a skeletal mesh asset found by content path, in slot-index order: slot name, assigned material and overlay material as object paths, "(none)" where a slot has none. Nothing is written; a mesh that does not load is an error. Pass a slot_index or slot_name from here to set_skeletal_mesh_material_slot to assign a material; get_skeletal_mesh_section_info gives the material_index each section of a LOD draws with; get_skeletal_mesh_info gives the slot count next to LODs, morph targets, sockets and bones.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset, e.g. "/Game/Characters/SKM_Hero" |
Returns: { skeletal_mesh_path: string, num_material_slots: int, material_slots: [{slot_index, slot_name, material_path, overlay_material_path}] }
get_skeletal_mesh_morph_targets¶
Read-only
List every morph target on a skeletal mesh asset by name, with whether it holds valid data and how many vertex deltas it has on LOD 0; count is the number of morph targets. Read-only: it changes nothing; a mesh that does not load is an error. Use it to find a morph_target_name, then read one morph's per-vertex deltas on any LOD with get_morph_target_deltas or write them with set_morph_target_deltas; create_skeletal_mesh_morph_target, rename_skeletal_mesh_morph_target and remove_skeletal_mesh_morph_target manage the list itself. get_skeletal_mesh_info only counts them.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path of the USkeletalMesh asset (object or package path), e.g. '/Game/Characters/SKM_Hero'. |
Returns: { skeletal_mesh_path: string, count: int, morph_targets: [{name, has_valid_data, num_deltas_lod0}] }
get_skeletal_mesh_section_info¶
Read-only
Read the render sections of one LOD of a skeletal mesh asset from its imported model: per section its material slot index, triangle and vertex counts, bone map size and the cast-shadow, recompute-tangent, ray-tracing and disabled flags, plus the LOD's total vertex count. Read-only: it changes nothing. A mesh that does not load, or a lod_index outside the mesh's LOD count, is an error. Use it to pick the section_index that set_skeletal_mesh_section_flags writes; for whole-mesh counts use get_skeletal_mesh_info, for one LOD's settings get_skeletal_mesh_lod_info, and for slot names get_skeletal_mesh_material_slots.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path of the USkeletalMesh asset (object or package path), e.g. '/Game/Characters/SKM_Hero'. |
lod_index |
integer | no | 0-based LOD index to read (default 0); it must be below num_lods from get_skeletal_mesh_info. |
Returns: { skeletal_mesh_path: string, lod_index: int, num_sections: int, lod_num_vertices: int, sections: [{section_index, material_index, num_triangles, num_vertices, recompute_tangent, cast_shadow, visible_in_ray_tracing, disabled, bone_map_count}] }
get_skeleton_info¶
Read-only
Find a Skeleton asset in the Asset Registry and report its object path, class path, package, whether it is loaded, the size and timestamp of its .uasset (left out when no file is on disk), and the skeletal meshes bound to it (mesh_count, mesh_paths, shared when more than one), all without loading it; nothing is changed. skeleton_name takes an object path, a package path or a short name searched under /Game; no match is an error, and so is a short name several skeletons share, with the candidates listed. Only with load_full_data true is the asset loaded, adding bone_count, the first 100 bones (name, index, parent_index) with bones_truncated, socket_count, slot_group_count and every virtual bone with its source and target. One bone's reference pose: get_bone_transform; a skeletal mesh: get_skeletal_mesh_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_name |
string | yes | Object path, package path, or bare short name of the Skeleton asset (resolved via mcp_common::ResolveAssetFlexible; an ambiguous short name errors out listing every candidate instead of picking one silently) |
skeleton_path |
string | no | Alias of skeleton_name. |
load_full_data |
boolean | no | When true, loads the asset and reports bone list (capped at 100), sockets, slot groups and virtual bones (optional, default false) |
Returns: { skeleton_name: string, skeleton_path: string, skeleton_class: string, package_name: string, is_loaded: bool, file_size_bytes: number?, file_size_kb: number?, file_size_mb: number?, last_modified: string?, mesh_count: int, shared: bool, mesh_paths: [string], loaded_successfully: bool?, is_valid: bool?, bone_count: number?, bones: [{ name, index, parent_index }]?, bones_truncated: bool?, socket_count: number?, slot_group_count: number?, virtual_bone_count: number?, virtual_bone_names: [string]?, virtual_bones: [{ name, source_bone, target_bone }]?, load_error: string? }
link_montage_sections¶
Destructive Idempotent
Chain one montage section to the next by setting its NextSectionName. add_montage_section creates sections but never links them; this writes FCompositeSection::NextSectionName so playback flows section -> next. Pass next_section_name "" or "None" to clear the link. Done in an undo transaction, then saved. Idempotent: the link the section already has is a success with changed=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
section_name |
string | yes | Name of the existing section whose link to set. |
next_section_name |
string | yes | Name of the existing section to play next (or "" / "None" to clear). |
Returns: { montage_path, section_name, next_section_name, linked, changed, section_count, sections, saved, save_error, message }
move_ik_solver_in_stack¶
Destructive
Move the solver at from_index so that it ends up at to_index (both 0-based positions in the solver stack) of an IK Rig asset through the IK Rig controller (one undo transaction), then save the asset. An index outside the stack is an error and nothing moves; from_index equal to to_index is not an error but moved false, saved false and a note, with nothing saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
from_index |
integer | yes | Source 0-based solver index |
to_index |
integer | yes | Target 0-based solver index, below the solver count |
Returns: { asset_path: string, from_index: int, to_index: int, moved: bool, solver_count: int, saved: bool, save_error?: string, note?: string }
play_animation¶
Destructive
Play an AnimMontage on a skeletal mesh component with UAnimInstance::Montage_Play at play_rate, then jump to start_section if playback started. Editor world unless the world param says otherwise; the component needs an anim instance. playing/success mean Montage_Play returned a length above 0.
| Parameter | Type | Required | Description |
|---|---|---|---|
component_name |
string | yes | Object name of the USkeletalMeshComponent, e.g. "CharacterMesh0", case-insensitive; the first actor in the world that has one with that name wins |
montage_path |
string | yes | Full asset path to the AnimMontage (e.g. '/Game/Animations/MyMontage.MyMontage') |
play_rate |
number | no | Playback rate multiplier (optional, default 1.0) |
start_section |
string | no | Name of the section to jump to after play starts (optional) |
world |
string | no | Optional world selector: absent/'editor' (default) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). |
Returns: { component_name: string, montage_path: string, montage_name: string, playing: bool, play_rate: number, montage_length: number, return_value: number, success: bool, start_section: string?, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }
refresh_anim_montage_cache¶
Destructive Idempotent
Re-run UAnimMontage::RefreshCacheData on a UAnimMontage in an undo transaction (it sorts the notifies, moves a notify off a missing or overlapping notify track, adding tracks as needed, and rebuilds the branching point markers) and save it. Idempotent: when the refresh rewrites none of those fields the reply is a success with refreshed=false and saved=false, the montage keeps the dirty state it had and nothing is saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
Returns: { montage_path, refreshed, sequence_length, slot_count, section_count, saved, save_error, message }
reimport_anim_sequence¶
Destructive
Reimport a UAnimSequence from a source file you name (source_file_path), or else from its first recorded source, through FReimportManager, fully automated with no dialogs. The class is not checked, so any asset a legacy reimport handler accepts works. The new content lands in memory only and is not saved (save it with save_asset), and it cannot be undone. Use reimport_asset for a plain reimport from the recorded sources, reimport_interchange_asset for an asset imported through Interchange, and get_asset_import_data to see the recorded source first. Before reimporting it checks on disk every file the reimport reads, as reimport_asset does: the source_file_path you give, or else every source file the asset records. No source recorded, or any of those files missing (the engine would crash on it; missing_files lists them), is refused with success=false, reimported=false, source_validated=false and a note, and nothing changes; a reimport the handler reports as failed is success=false too. An asset no handler accepts, or a path that does not load, is an error. Every call reimports again.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Object path of the UAnimSequence, e.g. '/Game/Anims/A_Walk' or '/Game/Anims/A_Walk.A_Walk'. |
source_file_path |
string | no | Absolute path on disk of the file to reimport from, e.g. "D:/Art/Walk.fbx"; it replaces the recorded sources. Omit it to reimport from the source files recorded in the asset's import data (get_asset_import_data shows them), which must all exist. |
Returns: { anim_sequence_path, source_file_path, source_files, reimported, source_validated, missing_files?, note? }
remove_anim_bone_track¶
Destructive
Remove the animation track of one bone from a UAnimSequence through its data controller (IAnimationDataController::RemoveBoneTrack, one undo step) and save the package. No track with that bone name is a success with removed=false and nothing saved; a failed save makes success false, with saved=false and save_error. List tracks with get_anim_sequence_info (bone_tracks).
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the UAnimSequence. |
bone_name |
string | yes | Name of the bone track to remove; a name no track has removes nothing. |
Returns: { sequence_path, bone_name, removed, saved, save_error }
remove_anim_composite_segment¶
Destructive
Remove one segment (an FAnimSegment) by zero-based index from a UAnimComposite's track in one undo step, re-stack the remaining segments end to end, recompute the composite length and save the asset. An index outside [0, num_segments) is an error and nothing changes. The later segments shift down one index, so a repeat with the same index removes a different segment: re-read segments from the reply before the next call. Count the segments with get_anim_asset_info; add_anim_composite_segment is the inverse. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
composite_path |
string | yes | Object path of the UAnimComposite, e.g. '/Game/Animation/AC_Example' (create_anim_composite makes one). |
index |
number | yes | Zero-based index of the segment to remove, in [0, num_segments), in the order of the segments list that add_anim_composite_segment and this tool return. |
Returns: { composite_path, index, num_segments, composite_length, segments, success, saved, save_error }
remove_anim_conduit¶
Destructive Idempotent Refused during PIE
Remove a conduit node from a state machine of an Animation Blueprint, together with its rule graph and every transition into or out of it (cascaded_transitions_removed), then mark the blueprint structurally modified and save it without compiling (compile_anim_blueprint gives runtime effect). Not an undo step. Idempotent by name: a conduit that is not there is a success with already_absent=true, and nothing is changed or saved. A name that belongs to a state is an error (use remove_anim_state), and so is a missing blueprint or machine. List the conduits first with get_anim_state_machine_info; add_anim_conduit is the inverse, and remove_anim_transition takes out a single transition instead. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Content path of the UAnimBlueprint (object or package path), e.g. '/Game/Characters/ABP_Hero'. |
machine_name |
string | yes | Name of a state machine on the blueprint's top-level AnimGraph, as get_anim_blueprint_info lists it in state_machines (case-insensitive), e.g. 'Locomotion'. |
conduit_name |
string | yes | Name of the conduit to remove, as get_anim_state_machine_info lists it (case-insensitive), e.g. 'ToAirborne'. |
Returns: { anim_blueprint_path: string, machine_name: string, conduit_name: string, removed: bool, already_absent: bool, conduit_count: int, transition_count: int, cascaded_transitions_removed: int, saved: bool, save_error?: string }
remove_anim_curve¶
Destructive
Remove a float or transform curve by name from a UAnimSequence through its data controller (one undo step) and save the package. No such curve is a success with removed=false and nothing saved; a failed save makes success false, with saved=false and save_error. Any curve_type other than transform targets float curves.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the UAnimSequence. |
curve_name |
string | yes | Name of the curve to remove. |
curve_type |
string | no | Curve type to target: float (default) or transform |
Returns: { sequence_path, curve_name, curve_type, removed, saved, save_error }
remove_anim_curve_name¶
Destructive Idempotent
Unregister a curve name from the curve metadata of a USkeleton asset (USkeleton::RemoveCurveMetaData), in one undo step, then save the skeleton. Inverse of add_anim_curve_name. It removes only the skeleton's registration: keyed curves of that name on animation sequences stay, and those are removed with remove_anim_curve (or renamed with rename_anim_curve). Idempotent: a name that is not registered changes and saves nothing and returns removed false and already_absent true. present is read back after the removal and curve_names lists what remains. A skeleton that does not load is an error; a failed save makes success false, with saved false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Asset path of the USkeleton, e.g. "/Game/Characters/SK_Hero_Skeleton", as get_skeleton_info (skeleton_path) returns it. |
curve_name |
string | yes | The registered curve name to remove, exact as listed in curve_names, e.g. "Curve_Example". |
Returns: { asset_path, curve_name, removed, already_absent, present, curve_count, curve_names, saved }
remove_anim_notify¶
Destructive
Remove every notify event whose NotifyName matches notify_name from a UAnimSequence (UAnimationBlueprintLibrary::RemoveAnimationNotifyEventsByName) in an undo transaction and save it. A name no event has is a success with removed=false, already_absent=true and saved=false, and the sequence is neither dirtied nor saved; a failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
animation_path |
string | yes | Full asset path to the UAnimSequence. |
notify_name |
string | yes | Name of the notify to remove (matches FAnimNotifyEvent.NotifyName). |
Returns: { animation_path, notify_name, removed, removed_count, already_absent, saved, save_error }
remove_anim_notify_name¶
Destructive
Unregister a notify name from the AnimationNotifies list of a USkeleton (USkeleton::RemoveAnimationNotify) inside an undo transaction and save the skeleton package. Inverse of add_anim_notify_name. It only drops the name from the skeleton's list: notify events already placed on animations keep their name (remove_anim_notify takes those off). A name that is not registered is a success with removed=false, already_absent=true and saved=false, and the skeleton is neither modified nor saved. Without skeleton_path it edits /Engine/EngineMeshes/SkeletalCube_Skeleton, as add_anim_notify_name does. The reply re-reads the list (notify_names). A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
notify_name |
string | yes | The notify name to unregister (e.g. 'Footstep'). |
skeleton_path |
string | no | Asset path of the USkeleton to edit (/Game/...); when omitted or empty the engine asset /Engine/EngineMeshes/SkeletalCube_Skeleton is edited and saved. |
Returns: { skeleton_path, notify_name, present, removed, already_absent, notify_count, notify_names: [string], saved, save_error, message }
remove_anim_slot_group¶
Destructive Idempotent
Remove an animation slot group from a skeleton (idempotent; guarded against missing group).
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Path to the USkeleton asset. |
group_name |
string | yes | Name of the slot group to remove. |
Returns: { asset_path: string, group_name: string, removed: bool, already_absent: bool, slot_group_count: int, slot_group_names: [string], saved: bool }
remove_anim_state¶
Destructive Idempotent Refused during PIE
Remove a state node from a state machine of an Animation Blueprint, together with its animation graph and every transition into or out of it (cascaded_transitions_removed), then mark the blueprint structurally modified and save it without compiling (compile_anim_blueprint gives runtime effect). Not an undo step. Idempotent by name: a state that is not there is a success with already_absent=true, and nothing is changed or saved. A name that belongs to a conduit is an error (use remove_anim_conduit), and so is a missing blueprint or machine. List the states first with get_anim_state_machine_info; add_anim_state is the inverse, and remove_anim_transition takes out a single transition instead. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Content path of the UAnimBlueprint (object or package path), e.g. '/Game/Characters/ABP_Hero'. |
machine_name |
string | yes | Name of a state machine on the blueprint's top-level AnimGraph, as get_anim_blueprint_info lists it in state_machines (case-insensitive), e.g. 'Locomotion'. |
state_name |
string | yes | Name of the state to remove, as get_anim_state_machine_info lists it (case-insensitive), e.g. 'Idle'. |
Returns: { anim_blueprint_path: string, machine_name: string, state_name: string, removed: bool, already_absent: bool, state_count: int, transition_count: int, cascaded_transitions_removed: int, saved: bool, save_error?: string }
remove_anim_sync_marker¶
Destructive
Remove every authored sync marker with the given name from a UAnimSequence in an undo transaction and save the package. Returns markers_before, markers_after and removed; no marker with that name is a success with removed=false and nothing saved, and a failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the UAnimSequence. |
marker_name |
string | yes | Name of the marker to remove. |
Returns: { sequence_path, marker_name, markers_before, markers_after, removed, saved, save_error }
remove_anim_transition¶
Destructive Idempotent Refused during PIE
Remove the transition from source_state to target_state in a state machine of an Animation Blueprint, with its rule graph (kept while a bidirectional twin shares it), then mark the blueprint structurally modified and save it without compiling (compile_anim_blueprint gives runtime effect). Only that direction goes; the states stay. Not an undo step. Idempotent: a missing source or target state, or no transition between them, is a success with already_absent=true, and nothing is changed or saved; a missing blueprint or machine is an error. add_anim_transition is the inverse; clear_anim_transition_rule empties the rule but keeps the transition; remove_state_transition is the StateTree counterpart. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Content path of the UAnimBlueprint (object or package path), e.g. '/Game/Characters/ABP_Hero'. |
machine_name |
string | yes | Name of a state machine on the blueprint's top-level AnimGraph, as get_anim_blueprint_info lists it in state_machines (case-insensitive), e.g. 'Locomotion'. |
source_state |
string | yes | Name of the state or conduit the transition leaves, as get_anim_state_machine_info lists it (case-insensitive), e.g. 'Idle'. |
target_state |
string | yes | Name of the state or conduit the transition enters (case-insensitive), e.g. 'Run'. |
Returns: { anim_blueprint_path: string, machine_name: string, source_state: string, target_state: string, removed: bool, already_absent: bool, transition_count: int, saved: bool, save_error?: string }
remove_animation_asset_from_pose_search_database¶
Destructive Idempotent
Remove one FPoseSearchDatabaseAnimationAsset entry from a UPoseSearchDatabase by 0-based index (inverse of add_animation_asset_to_pose_search_database). Idempotent: an out-of-range index returns removed:false + note, not an error. The database index is NOT rebuilt here -- run build_pose_search_database_index afterwards.
| Parameter | Type | Required | Description |
|---|---|---|---|
database_path |
string | yes | Full /Game/... asset path of the database. |
animation_asset_index |
integer | yes | 0-based index into DatabaseAnimationAssets[]. |
Returns: { database_path, animation_asset_index, removed, previous_count, new_count }
remove_blend_profile¶
Destructive Idempotent
Remove a WHOLE UBlendProfile from a skeleton (idempotent). Inverse of set_blend_profile_bone, which is what implicitly CREATES a profile -- there is no separate create_blend_profile to undo.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Path to the USkeleton asset |
profile_name |
string | yes | Name of the UBlendProfile to remove |
Returns: { asset_path, profile_name, removed, already_absent, profile_count, profile_names, saved }
remove_blend_space_sample¶
Destructive
Remove a blend sample (by index) from a BlendSpace. WARNING: the remaining indices REORDER -- the engine removes with a swap, so the LAST sample lands in the deleted slot. Never remove a batch by descending index and assume the rest held still: the full post-op sample list is returned so the caller can re-sync before the next call. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
blendspace_path |
string | yes | Full asset path to the UBlendSpace. |
index |
integer | yes | Index of the sample to remove. |
Returns: { blendspace_path, removed, num_samples, samples, saved, save_error, message }
remove_bone¶
Destructive Idempotent
Remove a bone from the reference skeleton of a USkeleton asset through FReferenceSkeletonModifier, then save the skeleton; no commit_bone_changes is needed afterwards. Without remove_children its child bones are kept and re-parented to the removed bone's parent; with it the whole branch goes. Only the skeleton changes: skeletal meshes, animations and sockets that use the bone are not updated. Inverse: add_bone; to move a bone instead use set_bone_parent; for virtual bones use remove_virtual_bone. Idempotent: a bone that is not there changes and saves nothing and returns removed false and already_absent true. The only root bone of the skeleton (which the engine will not remove) and a virtual bone are refused with success false, removed false and nothing changed; removed true is only answered after the bone is read back as gone, and bones_removed counts the bones that went (children included). A skeleton that does not load is an error; a failed save makes success false, with saved false and save_error. Work on a project copy (create_editable_skeleton), not engine content.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Asset path of the USkeleton, e.g. "/Game/Characters/SK_Hero_Skeleton", as get_skeleton_info (skeleton_path) or create_editable_skeleton (asset_path) returns it. |
bone_name |
string | yes | Exact name of the bone to remove, e.g. "twist_01_l". |
remove_children |
boolean | no | true removes every descendant bone too; false (default) keeps the children and re-parents them one level up. |
Returns: { asset_path, bone_name, removed, already_absent, remove_children, bone_count, bones_removed, saved, op: "remove_bone" }
remove_ik_goal¶
Destructive Idempotent
Remove an IK goal from an IK Rig by name through the IK Rig controller (one undo transaction), then save the asset. Inverse of add_ik_goal: also detaches the goal from every solver's effector and clears it from any retarget chain that referenced it. Idempotent: removing a goal that isn't present is a success with removed:false, already_absent:true, saved:false and a note, and nothing is saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
goal_name |
string | yes | Name of the goal to remove |
Returns: { asset_path: string, goal_name: string, removed: bool, already_absent: bool, goal_count: int, saved: bool, save_error?: string, note?: string }
remove_ik_retarget_chain¶
Destructive
Remove the retarget chain with that name from an IK Rig asset through the IK Rig controller (one undo transaction), then save the asset. A name no chain has is not an error but removed false, saved false and a note, with nothing saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
chain_name |
string | yes | Name of the retarget chain to remove |
Returns: { asset_path: string, chain_name: string, removed: bool, chain_count: int, saved: bool, save_error?: string, note?: string }
remove_ik_solver¶
Destructive
Remove the solver at a 0-based index from the solver stack of an IK Rig asset through the IK Rig controller (one undo transaction), then save the asset. An out-of-range index is an error. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
solver_index |
integer | yes | 0-based index of the solver to remove |
Returns: { asset_path: string, removed_solver_index: int, solver_count: int, removed: bool, saved: bool, save_error?: string }
remove_montage_notify¶
Destructive
Remove the notify event at a zero-based index from the Notifies array of a UAnimMontage and save it; an index past the end changes nothing and still returns success with removed=false. Returns removed_notify_name, notify_count_before, notify_count and the remaining notify names. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
notify_index |
number | yes | Zero-based index into the montage's Notifies array. Use get_montage_info first to list notifies. |
Returns: { montage_path, notify_index, removed_notify_name?, notify_count_before, notify_count, notifies[], removed, saved, save_error, message }
remove_montage_section¶
Destructive
Delete the first composite section with that name (FName match, case ignored) from a UAnimMontage and save it; a missing name is a success with removed=false and nothing saved. Links from other sections (NextSectionName) are not updated. Returns removed_index, section_count and the remaining sections. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
section_name |
string | yes | Name of the FCompositeSection to remove; compared as an FName, so case is ignored. |
Returns: { montage_path, section_name, removed_index?, already_existed, removed, section_count, sections[], saved, save_error, message }
remove_montage_segment¶
Destructive
Remove the segment at segment_index from a slot track of a UAnimMontage, in one undo step, recompute the montage length and save the montage. Inverse of add_montage_segment; the segments after it move down one index, and the gap it leaves on the track stays until collapse_montage_segments closes it. A montage that does not load, a slot it does not have, or an index out of range is an error and nothing changes. The reply re-reads the slot (segment_count, montage_length). A failed save makes success false, with saved=false and save_error. Read the montage: get_montage_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Object path of the UAnimMontage (e.g. "/Game/MyGame/AM_Example"). |
slot_name |
string | yes | Montage slot name (e.g. DefaultSlot). |
segment_index |
integer | yes | Zero-based index of the segment in that slot's track. |
Returns: { montage_path, slot_name, segment_index, removed_anim_sequence_path, removed, segment_count, montage_length, success, saved, save_error }
remove_montage_slot¶
Destructive
Remove one slot animation track (the FSlotAnimationTrack and every segment on it) from a UAnimMontage, picked by slot_name or slot_index, in one undo step, and save the montage. List the slots first with get_montage_info; add_montage_slot is the inverse, and remove_montage_segment takes out a single segment instead of the whole track. A slot that is not there is a success with removed=false and already_existed=false, and nothing is changed or saved, so a repeat by slot_name is safe; a repeat by slot_index takes out whichever track moved into that index. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Object path of the UAnimMontage, e.g. '/Game/MyGame/AM_Example'. |
slot_name |
string | no | Slot name of the track to remove, as get_montage_info lists it, e.g. 'DefaultSlot'; the first track with that name goes. Wins over slot_index when both are given; one of the two is required. |
slot_index |
number | no | Zero-based index into the montage's slot tracks, in get_montage_info order (used only without slot_name); an index past the last track is a no-op success with removed=false. |
Returns: { montage_path, slot_name?, slot_index?, removed_index?, removed_slot_name?, slot_count, slots[], already_existed, removed, saved, save_error, message }
remove_motion_warping_component¶
Destructive Idempotent
Destroy the UMotionWarpingComponent of an actor (the first one found), with all its warp targets; the inverse of add_motion_warping_component. The actor is recorded in the call's undo step (Actor->Modify) and its level is marked dirty, not saved (save_level persists it). Only an instance component stays gone: one that the actor's Blueprint or C++ class defines comes back (when its construction script reruns, or on reload), so remove that one from the class instead. To clear targets but keep the component use remove_motion_warping_target (all=true); check the result with get_motion_warping_component_info. removed is read back from the actor: true once the component is off its component list and being destroyed, and a component still there makes success false. Idempotent: an actor without one returns already_existed=false, removed=false and a note, not an error. An actor that is not found is an error and nothing changes.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_path |
string | yes | Actor as a full object path ('/Game/Maps/Arena.Arena:PersistentLevel.BP_Hero_C_1'), or the internal name or label of an editor-world actor ('BP_Hero_C_1', 'Hero'). |
Returns: { actor_path: string, component_path?: string, removed: bool, already_existed: bool, note?: string }
remove_motion_warping_target¶
Destructive Idempotent
Remove a FMotionWarpingTarget from a UMotionWarpingComponent by FName, or with all=true every warp target at once. Wraps UMotionWarpingComponent::RemoveWarpTarget(name) (0 or 1 removed; the array is keyed by FName), looped over a snapshot of the names for all=true. Idempotent: removing a non-existent target, or clearing an empty component, returns removed_count 0 without raising an error. Pass target_name or all=true, not both.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_path |
string | yes | Full editor path or short name of the actor. actor_name (the internal object name) is accepted as an alias. |
target_name |
string | no | FName identifier of the warp target to remove. Required unless all is true. |
all |
boolean | no | Optional bool (default false). When true, remove every warp target of the component; target_name must then be omitted. |
actor_name |
string | no | Alias of actor_path: the same value with the same meaning. Pass one of the two. |
Returns: { actor_path: string, target_name?: string, all: bool, removed_count: int, removed_names: [string], previous_count: int, warp_target_count: int, cleared: bool, removed: bool } -- removed is read back: no target asked for is still on the component (true for a name that was already absent); false makes the call fail
remove_notify_track¶
Destructive Idempotent
Remove one named notify track from a UAnimSequence in one undo step and save it: the notify events and sync markers on that track go with it and the tracks after it shift down one index. Idempotent by name: a track that is not there is a success with already_absent=true, and nothing is changed or saved. Removing the sequence's last remaining track is refused with an error and nothing changes. List the track names with get_anim_notifies; add_notify_track is the inverse, and remove_anim_notify takes out a single event instead of a whole track. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
animation_path |
string | yes | Object path of the UAnimSequence, e.g. '/Game/Animation/Run_Fwd'. |
track_name |
string | yes | Name of the notify track, as get_anim_notifies lists it in track_names (matched case-insensitively), e.g. '1' or 'Footsteps'. |
Returns: { animation_path, track_name, track_names, track_count, already_absent, saved, save_error, message }
remove_pose_curve¶
Destructive Idempotent
Delete one named curve, with its value in every pose, from a UPoseAsset (UPoseAsset::DeleteCurves) in one undo step and save the asset. To delete a whole pose use remove_pose_from_pose_asset instead; for a curve on a UAnimSequence use remove_anim_curve, and to unregister a curve name from a skeleton remove_anim_curve_name. No tool adds a pose curve back, so only undo restores it. Idempotent in effect: an absent curve is a success with removed=false, removed_count 0 and saved=false, and the asset is neither modified nor saved. get_anim_asset_info reports the pose asset's curve count. A path that does not load as a UPoseAsset is an error. A failed save (always while PIE runs) makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
pose_asset_path |
string | yes | Object path of the UPoseAsset, e.g. '/Game/Anims/PA_Face' or '/Game/Anims/PA_Face.PA_Face'. |
curve_name |
string | yes | Exact curve name, matched as an FName (case ignored), e.g. 'Blink_L'. |
Returns: { pose_asset_path, curve_name, removed_count, removed, num_curves, saved, save_error, message }
remove_pose_from_pose_asset¶
Destructive
Delete the named pose from a UPoseAsset (UPoseAsset::DeletePoses, which also fixes the base pose index) in an undo transaction and save the asset. An absent name is a success with removed=false and saved=false, and the asset is neither modified nor saved. Returns was_present, removed_count, contains_after, num_poses and the remaining pose_names. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
pose_asset_path |
string | yes | Path to the UPoseAsset (e.g. '/Game/MyGame/Pose_Example'). |
pose_name |
string | yes | Name of the pose to remove. |
Returns: { pose_asset_path, pose_name, was_present, removed_count, removed, contains_after, num_poses, pose_names, saved, save_error, message }
remove_pose_search_channel_from_schema¶
Destructive
Remove one feature channel (a UPoseSearchFeatureChannel_* such as Pose or Trajectory) from a motion-matching UPoseSearchSchema, chosen by index or by type, in one undo step; the schema is then re-finalized (PostEditChange) and saved. The inverse of add_pose_search_channel_to_schema; to only lower a channel's influence, set its weight with that tool instead. List the channels first with get_pose_search_schema_info, and rebuild every database that uses the schema with build_pose_search_database_index afterwards, since the old index no longer matches. An index out of range or no channel of that type is a success with removed=false, already_absent=true and nothing saved. Not idempotent: indices shift after a removal, and by type each call takes the next channel of that class. Passing neither selector, an unknown channel_type, or a schema that does not load is an error. previous_count and channel_count count the schema's source channels (the list channel_index indexes) before and after the call, so a removal shows as one less; finalized_channel_count is the finalized view, 0 when finalizing fails, and finalized and finalize_warning say whether the schema finalized. A failed save (always while PIE runs) makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
schema_path |
string | yes | UPoseSearchSchema asset as a package or object path, e.g. "/Game/MotionMatching/PSS_Locomotion" (required). |
channel_index |
integer | no | 0-based index into the schema's source channel list (the order of get_pose_search_schema_info's finalized_channels once the schema is finalized; that tool lists none before); takes precedence over channel_type when both are given. |
channel_type |
string | no | "Pose", "Trajectory", "Position", "Velocity" or "Heading", case ignored; removes the first channel of that class, subclasses included. Used only when channel_index is absent. |
Returns: { schema_path, channel_index, channel_type, channel_class, schema_cardinality, channel_count (source, after), previous_count (source, before), finalized_channel_count, source_channel_count, finalized, finalize_warning?, removed, already_absent, saved, save_error?, message }
remove_pose_search_roled_skeleton¶
Destructive Idempotent
Remove one roled skeleton entry (FPoseSearchRoledSkeleton: a role name bound to a USkeleton and optional mirror table) from a UPoseSearchSchema, chosen by role or by index, in one undo step; the schema is then re-finalized (PostEditChange), which can change its finalized channels, and saved. Use it to drop a character from a multi-character schema; it is the inverse of set_pose_search_schema_skeleton with a new role. To swap the skeleton of a role use set_pose_search_schema_skeleton, to rename a role set_pose_search_schema_role, and list the entries with get_pose_search_schema_info. Idempotent by role: no matching entry (or an index out of range) is a success with removed=false, already_absent=true, saved=false and a note, and nothing is written; by index a repeat removes the next entry, since indices shift. Passing both or neither selector, or a schema that does not load, is an error. Rebuild databases on the schema with build_pose_search_database_index afterwards. A failed save (always while PIE runs) makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
asset_path |
string | yes | UPoseSearchSchema asset as a package or object path, e.g. "/Game/MotionMatching/PSS_Interaction" (required). |
role |
string | no | Role name of the entry to remove, compared as an FName (case ignored), e.g. "Defender"; an empty string means the default (None) role. Give this OR skeleton_index. |
skeleton_index |
integer | no | 0-based index of the entry in the schema's roled-skeleton list, in get_pose_search_schema_info order. Give this OR role. |
Returns: { asset_path, role, skeleton_index, removed_skeleton_path, roled_skeleton_count, previous_count, removed, already_absent, saved, save_error?, note? }
remove_retarget_pose¶
Destructive Idempotent
Remove a retarget pose from an IK Retargeter by name through its controller, then save the asset. Inverse of create_retarget_pose. If the removed pose was the current one, the retargeter falls back to the default pose. Idempotent: removing a pose that isn't present is a success with removed:false, already_absent:true, saved:false and a note, and nothing is saved. The engine's built-in default pose cannot be removed (honest error). A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Content path to the IK Retargeter asset. |
pose_name |
string | yes | Name of the retarget pose to remove |
source_or_target |
string | no | Optional "Source" or "Target" scope; defaults to "Target" |
Returns: { ik_retargeter_path: string, pose_name: string, source_or_target: string, removed: bool, already_absent: bool, success: bool, saved: bool, save_error?: string, note?: string }
remove_retargeter_op¶
Destructive
Remove the op at a 0-based index, with any child ops, from the op stack of an IK Retargeter asset through its controller (one undo transaction), then save the asset. An out-of-range index is an error. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Path to the UIKRetargeter asset |
op_index |
integer | yes | 0-based op index |
Returns: { asset_path: string, removed_op_index: int, removed: bool, op_count: int, saved: bool, save_error?: string }
remove_rig_element¶
Destructive Refused during PIE
Remove one element (by name and type) from a Control Rig Blueprint hierarchy with RemoveElement, then compile and save the blueprint. Errors on an unknown type or a missing element. Returns the per-type counts afterwards; refused while PIE runs unless force is set.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Control Rig Blueprint asset path, e.g. "/Game/Rigs/CR_Hero" |
element_name |
string | yes | Name of the element to remove |
element_type |
string | yes | Element type, any case: "Bone", "Null" (or "Space"), "Control", "Curve", "Socket" or "Connector" |
Returns: { asset_path: string, element_key: string, element_type: string, removed: bool, bone_count: int, null_count: int, control_count: int, curve_count: int, other_count: int, total: int, saved: bool, save_error: string }
remove_skeletal_mesh_lod¶
Destructive
Remove one LOD from a skeletal mesh asset, with its source model and cached reduction data; higher LODs shift down one index. lod_index must be 1 or more and below the LOD count, otherwise an error (LOD 0 is never removed). Marks the mesh dirty without saving or rebuilding render data, so follow with save_asset. Use add_skeletal_mesh_lod to append a LOD, get_skeletal_mesh_lod_info to inspect them, set_skeletal_mesh_min_lod to skip the most detailed LODs while keeping them.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset |
lod_index |
integer | yes | Index of the LOD to remove (must be > 0) |
Returns: { skeletal_mesh_path: string, lod_index: int, lod_count: int, removed: bool } -- removed is read back (one LOD fewer)
remove_skeletal_mesh_morph_target¶
Destructive
Delete one morph target, by name, from a skeletal mesh asset found by content path, including its data in every LOD's source mesh, in one undo step, then save the mesh. Not idempotent: a name the mesh does not have is an error, so a repeat call fails instead of reporting it already gone. A mesh that does not load is an error, and so is a failed save (refused during PIE or under a read-only root, or a locked file), although the deletion stays in memory. remaining_morph_targets counts the morphs left. List names with get_skeletal_mesh_morph_targets; rename with rename_skeletal_mesh_morph_target; add one with create_skeletal_mesh_morph_target.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset, e.g. "/Game/Characters/SKM_Hero" |
morph_target_name |
string | yes | Name of the morph target to delete, as get_skeletal_mesh_morph_targets lists it |
Returns: { morph_target_name: string, skeletal_mesh_path: string, removed: bool, remaining_morph_targets: int, saved: bool, save_error?: string } -- removed is read back (the name is no longer found)
remove_skeletal_mesh_socket¶
Destructive Idempotent
Deletes a socket from a skeletal mesh asset, together with the same-named socket on its skeleton and the preview assets attached to that socket name. One undo step, then every asset that changed is saved: the mesh for its own socket, the skeleton for its socket (saved_assets lists them), so a socket that lives only on the skeleton is deleted from the skeleton's file too; a failed save makes success false with save_error and leaves the deletion in memory. An asset that would change but cannot be saved (engine content, a read-only root) is refused before anything changes. Idempotent: a name neither the mesh nor its skeleton has returns already_removed true, with nothing changed or saved. A socket that should go from a Skeleton asset alone can also be deleted with remove_skeleton_socket; static meshes use remove_static_mesh_socket. Re-add with add_skeletal_mesh_socket; get_skeletal_mesh_info reports the socket count.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Package or object path of the skeletal mesh asset (e.g. "/Game/Characters/SK_Hero"). |
socket_name |
string | yes | Name of the socket to delete, matched case-insensitively (e.g. "hand_r_socket"). |
Returns: { socket_name: string, skeletal_mesh_path: string, removed: bool, already_removed: bool, removed_from_mesh: bool, removed_from_skeleton: bool, saved_assets: [string], saved: bool, save_error?: string, socket_count: int } -- removed is read back (the name is no longer found on the mesh or its skeleton)
remove_skeleton_socket¶
Destructive Idempotent
Remove a socket from the socket list of a USkeleton asset and save it. Idempotent: a missing socket returns removed false and already_absent true without saving. Returns socket_count and the remaining socket_names; sockets that exist only on a skeletal mesh are untouched (use remove_skeletal_mesh_socket).
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | USkeleton asset path, e.g. "/Game/Characters/SK_Hero_Skeleton". |
socket_name |
string | yes | Name of the socket to remove (case-insensitive). |
Returns: { asset_path: string, socket_name: string, removed: bool, already_absent: bool, socket_count: int, socket_names: [string], saved: bool }
remove_virtual_bone¶
Destructive Idempotent
Remove a virtual bone from a USkeleton asset, named directly or found by its source and target bones, then save. Idempotent: no match returns removed false and already_absent true without saving. Returns the remaining virtual_bone_names; a failed save returns success false.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | USkeleton asset path, e.g. "/Game/Characters/SK_Hero_Skeleton". |
virtual_bone_name |
string | no | Full virtual bone name with its "VB " prefix, e.g. "VB pelvis_hand_r"; when given, source_bone and target_bone are ignored. |
source_bone |
string | no | Source bone name; used with target_bone to resolve the virtual bone when virtual_bone_name is omitted. |
target_bone |
string | no | Target bone name; used with source_bone to resolve the virtual bone when virtual_bone_name is omitted. |
Returns: { asset_path: string, virtual_bone_name: string, removed: bool, already_absent: bool, virtual_bone_count: int, virtual_bone_names: [string], saved: bool }
rename_anim_curve¶
Destructive
Rename a float or transform curve on a UAnimSequence through its data controller (one undo step) and save it; errors when the source curve does not exist or the rename is refused. The same name for both is a success with renamed=false, saved=false and a note, and nothing is written or saved. Any curve_type other than transform means float. Returns renamed and saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Full asset path to the UAnimSequence |
old_curve_name |
string | yes | Name of the existing curve to rename, as listed by get_anim_sequence_info (float_curves, transform_curves). |
new_curve_name |
string | yes | Name the curve gets after the rename. |
curve_type |
string | no | Curve type to target: float (default) or transform |
Returns: { anim_sequence_path, old_curve_name, new_curve_name, renamed, saved, save_error, note? }
rename_bone¶
Destructive
Rename a bone in the reference skeleton of a USkeleton asset and save it. Fails with an error when old_name is not a bone or new_name is already taken; skeletal meshes and animations that use the old name are not updated. A failed save returns success false.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | USkeleton asset path, e.g. "/Game/Characters/SK_Hero_Skeleton". |
old_name |
string | yes | Current bone name; must exist in the reference skeleton. |
new_name |
string | yes | Desired new bone name (must not already exist) |
Returns: { asset_path, old_name, new_name, renamed: true, not_found: false, already_used: false, bone_count, saved, save_error?, op: "rename_bone" }
rename_ik_retarget_chain¶
Destructive
Rename a retarget chain of an IK Rig asset through the IK Rig controller (one undo transaction) and save it. The engine makes the new name unique, so read new_name back; an unknown chain_name is not an error but returns renamed false, saved false and a note, with nothing saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | IK Rig (UIKRigDefinition) asset path, e.g. "/Game/Retarget/IK_Hero". |
chain_name |
string | yes | Current name of the retarget chain, as get_ik_rig_info lists it. |
new_name |
string | yes | Requested new name; the engine may add a suffix to keep it unique. |
Returns: { asset_path: string, old_name: string, new_name: string, renamed: bool, saved: bool, save_error?: string, note?: string }
rename_montage_section¶
Destructive
Rename an existing FCompositeSection on a UAnimMontage by zero-based section_index, in an undo transaction, and save it. The name the section already has (FName match, case ignored) is a success with applied=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
section_index |
number | yes | Zero-based index into CompositeSections (use get_montage_info first to list). |
new_name |
string | yes | New FName for the section. |
Returns: { montage_path, section_index, old_name, new_name, section_count, sections, applied, saved, save_error, message }
rename_pose_in_pose_asset¶
Destructive
Rename an existing named pose in a UPoseAsset (UPoseAsset::ModifyPoseName) in an undo transaction and save it; renamed is measured by reading the pose names back. An unknown old_pose_name, a new_pose_name another pose already has, or a rename the engine does not take is an error with nothing saved; the same name for both is a success with renamed=false and saved=false, and nothing is modified or saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
pose_asset_path |
string | yes | Path to the UPoseAsset. |
old_pose_name |
string | yes | Current name of the pose to rename. |
new_pose_name |
string | yes | New name for the pose. |
Returns: { pose_asset_path, old_pose_name, new_pose_name, renamed, contains_new, contains_old, num_poses, pose_names, saved, save_error, message }
rename_rig_element¶
Destructive Idempotent Refused during PIE
Rename one element -- a bone, null, control, curve, socket or connector -- in the hierarchy of a Control Rig Blueprint, then compile and save the blueprint; there is no undo step and it is refused while Play-in-Editor runs unless force is set. Read current names and types with get_rig_hierarchy; add_rig_element and remove_rig_element add and take away elements; a bone of a USkeleton asset is rename_bone instead. The engine never fails on a name already in use: it appends a numeric suffix, so element_key is the name the element really got and name_adjusted says when it differs from new_name. Idempotent: renaming to the current name is a no-op that compiles and saves nothing ({ renamed:false, already_named:true }). An unknown element_type, or an element of that type the hierarchy does not have, is an error and nothing changes; a failed save makes success false with save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Path to the UControlRigBlueprint asset, e.g. "/Game/Rigs/CR_Mannequin"; create_control_rig_blueprint makes one |
element_type |
string | yes | Element type ("Bone"/"Null"/"Control"/"Curve"/"Socket"/"Connector"), case-insensitive; "Space" also means Null |
element_name |
string | yes | Current name of the element to rename, as get_rig_hierarchy lists it (case-insensitive) |
new_name |
string | yes | Desired new name for the element, e.g. "spine_01_ctrl"; a name in use gets a numeric suffix |
Returns: { asset_path: string, old_name: string, element_key: string, element_type: string, renamed: bool, already_named: bool, name_adjusted: bool, bone_count: int, null_count: int, control_count: int, curve_count: int, other_count: int, total: int, saved: bool, save_error: string }
rename_skeletal_mesh_morph_target¶
Destructive
Rename a morph target on a skeletal mesh asset and save the mesh. Fails if old_name is not a morph target of the mesh or new_name already exists; a failed save also returns an error although the rename stays in memory. Returns old_name, new_name and renamed.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Skeletal mesh asset path, e.g. "/Game/Characters/SKM_Hero". |
old_name |
string | yes | Current morph target name, as get_skeletal_mesh_morph_targets lists it. |
new_name |
string | yes | New morph target name; must not already exist on the mesh. |
Returns: { old_name: string, new_name: string, skeletal_mesh_path: string, renamed: bool, saved: bool, save_error?: string } -- renamed is read back (new_name found, old_name gone)
rename_skeletal_mesh_socket¶
Destructive Idempotent
Renames a socket of a skeletal mesh asset; a socket of the same name on the mesh's skeleton is renamed too, and preview assets attached to the old name follow it. One undo step, then every asset that changed is saved: the mesh for its own socket, the skeleton for its socket (saved_assets lists them), so a socket that lives only on the skeleton is written to the skeleton's file; a failed save makes success false with save_error and leaves the rename in memory. Refused with nothing changed when new_name equals old_name, a socket called new_name already exists on the mesh or its skeleton while old_name is still there, old_name is not found, or an asset that would change cannot be saved (engine content, a read-only root). Idempotent: when old_name is gone and new_name is there, it succeeds with already_renamed true and nothing changed or saved. Add a socket with add_skeletal_mesh_socket, re-parent one with set_skeletal_mesh_socket_parent, delete one with remove_skeletal_mesh_socket; Skeleton assets: add_skeleton_socket and remove_skeleton_socket; static meshes: rename_static_mesh_socket.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Package or object path of the skeletal mesh asset (e.g. "/Game/Characters/SK_Hero"). |
old_name |
string | yes | Current socket name, matched case-insensitively (e.g. "hand_r_socket"). |
new_name |
string | yes | New socket name; must differ from old_name and be free on the mesh and its skeleton (a change of letter case only counts as taken). |
Returns: { old_name: string, new_name: string, skeletal_mesh_path: string, renamed: bool, already_renamed: bool, renamed_on_mesh: bool, renamed_on_skeleton: bool, saved_assets: [string], saved: bool, save_error?: string, socket_count: int } -- renamed is read back (new_name found, old_name gone); socket_count adds the mesh's sockets and its skeleton's
scale_anim_curve¶
Destructive
Retime a FLOAT curve on a UAnimSequence through its data controller (one undo step), then save the package: every key TIME becomes (t - origin) * factor + origin, and the key VALUES are left untouched -- this stretches/compresses a curve in time, it does not scale its amplitude. FLOAT-CURVE ONLY: a name that is not a float curve of the sequence, a transform curve included, is an error and nothing is written. A retime that moves no key (factor 1, no keys, or every key at the origin) is a success with applied=false and saved=false, and nothing is written or saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the UAnimSequence. |
curve_name |
string | yes | Name of the float curve. |
factor |
number | no | Scale factor applied to each key TIME (default 1.0). |
origin |
number | no | Time origin the key times are scaled about (default 0.0). |
Returns: { anim_sequence_path, curve_name, origin, factor, num_keys, applied, saved, save_error, message }
set_anim_bone_track_keys¶
Destructive Idempotent
Replace the keys of one bone track of a UAnimSequence with the given per-key transforms (translation, rotation, scale), or, without keys, with num_keys identity keys (zero translation, identity rotation, unit scale), adding the track when it is missing, through its data controller as one undo step, then save the package; num_keys_readback and first_key are read back from the data model. A track that already holds exactly these keys (the stored track data comes out unchanged, measured with the data model GUID; the engine stores a constant track as one value, whatever num_keys is) is a success with changed=false and saved=false, the package keeps the dirty state it had and nothing is saved. 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. keys and num_keys together, an empty keys array or a num_keys below 1 are refused. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the UAnimSequence. |
bone_name |
string | no | Name of a bone of the skeleton of the sequence; omitted or empty means the root bone. |
keys |
array | no | Optional array of per-key transforms: { translation:[x,y,z], rotation:[pitch,yaw,roll] (deg), scale:[x,y,z] }. translation default [0,0,0], rotation default [0,0,0], scale default [1,1,1]. Omitted: num_keys identity keys are written. |
num_keys |
number | no | Optional number of identity keys to write when keys is omitted, rounded, >= 1 (default 2); not checked against the frame count of the sequence. |
Returns: { anim_sequence_path, bone_name, num_keys, num_keys_readback, num_bone_tracks, first_key:{translation,rotation_euler}, identity_keys, changed, success, saved, save_error, message }
set_anim_curve_color¶
Destructive Idempotent
Set the editor display color of a FLOAT curve on a UAnimSequence through its data controller (one undo step), then save the package (cosmetic: it tints the curve in the editor, it does not affect evaluation). FLOAT-CURVE ONLY: a name that is not a float curve of the sequence, a transform curve included, is an error and nothing is written; so is a color that is not 3 or 4 numbers. The color the curve already has is a success with applied=false and saved=false, and nothing is written or saved. A failed save makes success false, with saved=false and save_error. Create the curve with add_anim_float_curve; its comment: set_anim_curve_comment.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the UAnimSequence. |
curve_name |
string | yes | Name of the float curve. |
color |
array | no | Color as [r, g, b] or [r, g, b, a], usually 0..1 (numbers within the float range); a is 1 when omitted, and an omitted color is white [1,1,1,1]. Any other value is an error. |
Returns: { anim_sequence_path, curve_name, color, applied, saved, save_error, message }
set_anim_curve_comment¶
Destructive Idempotent
Set the author comment of a FLOAT curve on a UAnimSequence through its data controller (one undo step), then save the package (metadata only; it does not affect evaluation). FLOAT-CURVE ONLY: a name that is not a float curve of the sequence, a transform curve included, is an error and nothing is written. The comment the curve already has (case-sensitive) is a success with applied=false and saved=false, and nothing is written or saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the UAnimSequence. |
curve_name |
string | yes | Name of the float curve. |
comment |
string | no | Comment string to set (default empty). |
Returns: { anim_sequence_path, curve_name, comment, applied, saved, save_error, message }
set_anim_curve_flags¶
Destructive Idempotent
Replace the curve flags (the EAnimAssetCurveFlags bitmask) of an existing float or transform curve on a UAnimSequence with one flag, in an undo transaction, then save the package. Despite the name it changes no key interpolation or tangents: linear and editable both set Editable; metadata, drive_track and disabled set those flags. interp_mode is required; an unknown mode, curve or sequence is an error, and any curve_type other than transform means float. old_flags and new_flags are the bitmasks before and after; flags the curve already has are a success with applied=false, saved=false and a note, and nothing is written or saved; a failed save makes success false, with saved=false and save_error. get_anim_curve_data reads the flags.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Full asset path to the UAnimSequence |
curve_name |
string | yes | Name of the curve |
interp_mode |
string | yes | One of "linear|editable|metadata|drive_track|disabled" |
curve_type |
string | no | Curve type to target: float (default) or transform |
Returns: { anim_sequence_path, curve_name, interp_mode, old_flags, new_flags, applied, saved, save_error, note? }
set_anim_frame_rate¶
Destructive Idempotent
Set the frame rate of the data model of a UAnimSequence (IAnimationDataController::SetFrameRate, one undo step) to fps rounded to whole frames per second, then save the package; fps, numerator and denominator are read back from the data model. The data controller only takes a rate that is a multiple or a factor of the current one, and the frame count must stay whole at the new rate: any other rate is an error and nothing changes. The rate the data model already has is a success with changed=false, saved=false and a note, and nothing is written or saved. A failed save makes success false, with saved=false and save_error. get_anim_sequence_info reads the rate.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the UAnimSequence. |
fps |
number | yes | New frame rate in frames per second, rounded to a whole number that must be at least 1. |
Returns: { sequence_path, fps, numerator, denominator, changed, saved, save_error, note? }
set_anim_graph_node_pin_binding¶
Destructive Idempotent Refused during PIE
Bind an AnimGraph node input pin to a variable or property path in the node property-binding map (the Details-panel bind chip), e.g. "TransformTrajectory" to "Trajectory"; set_properties on the node's object_path edits the FAnimNode struct (Node) instead. Returns applied and the stored binding; saves the AnimBP without recompiling (run compile_anim_blueprint).
| Parameter | Type | Required | Description |
|---|---|---|---|
node_id |
string | yes | NodeGuid of the target UAnimGraphNode_* (from get_graph_nodes). |
pin_name |
string | yes | The bound property/pin name (e.g. "TransformTrajectory"). |
binding_path |
string | yes | The variable/property path to bind the pin to (e.g. "Trajectory", or nested "MyStruct.Member"). This tool does not check that the path resolves. |
anim_blueprint_path |
string | no | Path or name of the UAnimBlueprint (aliases: anim_blueprint, blueprint_name). |
graph_name |
string | no | Target graph (optional; deep-resolved; default the top-level AnimGraph). |
anim_blueprint |
string | no | Alias of anim_blueprint_path, used only when anim_blueprint_path is absent or empty. |
blueprint_name |
string | no | Alias of anim_blueprint_path, used only when anim_blueprint_path and anim_blueprint are both absent or empty. |
Returns: { node_id, pin_name, binding_path, applied, binding:{property_name, property_path[], path_as_text, is_bound, is_promotion, binding_type, pin_category}, saved, save_error?, success, error? } -- applied is read back: the stored binding for pin_name is bound to binding_path
set_anim_montage_preview_mesh¶
Destructive Idempotent
Set the editor preview USkeletalMesh of a UAnimMontage (SetPreviewMesh, one undo step) and save the montage; it only changes what the asset editor shows, and the mesh skeleton is not checked against the montage. Returns mesh_path, prev_mesh_path and applied; the preview mesh the montage already has is a success with applied=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
mesh_path |
string | yes | Asset path of the preview USkeletalMesh (e.g. '/Engine/EngineMeshes/SkeletalCube'). |
Returns: { montage_path, mesh_path, prev_mesh_path, applied, saved, save_error, message }
set_anim_montage_skeleton¶
Destructive Idempotent
Rebind a UAnimMontage to a different USkeleton (clears existing source link + recomputes bone caches) in an undo transaction and save it. The skeleton the montage already uses is a success with applied=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
skeleton_path |
string | yes | Asset path of the new Skeleton (e.g. '/Engine/EngineMeshes/SkeletalCube_Skeleton'). |
Returns: { montage_path, skeleton_path, prev_skeleton_path, applied, saved, save_error, message }
set_anim_notify¶
Destructive Idempotent
Edit an existing FAnimNotifyEvent on a UAnimSequence (identified by name + occurrence) in an undo transaction and save it. No editable field is an error before anything changes; edits that leave the event as it is are a success with applied=false, applied_count 0 and saved=false, and the sequence is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
animation_path |
string | yes | Full asset path to the UAnimSequence. |
notify_name |
string | yes | NotifyName of the event to edit (FName). Names are not unique; see occurrence_index. |
occurrence_index |
number | no | Zero-based index AMONG events sharing notify_name (default 0) |
time |
number | no | New trigger time in seconds (FAnimNotifyEvent::SetTime). Optional. |
duration |
number | no | New duration in seconds (FAnimNotifyEvent::SetDuration; meaningful for notify-state). Optional. |
trigger_chance |
number | no | New NotifyTriggerChance in [0,1]. Optional. |
trigger_weight_threshold |
number | no | New TriggerWeightThreshold. Optional. |
montage_tick_type |
string | no | New MontageTickType: 'Queued' or 'BranchingPoint'. Optional. |
track_index |
number | no | New TrackIndex (zero-based). Optional. |
Returns: { animation_path, notify_name, occurrence_index, matched_count, notify, applied_count, applied, saved, save_error, message }
set_anim_number_of_frames¶
Destructive Idempotent
Set the number of frames of the data model of a UAnimSequence (IAnimationDataController::SetNumberOfFrames, one undo step), then save the package; frame_count is read back from the data model. When the data model rate differs from the sequence sampling rate (as after set_anim_frame_rate), a count that is not a whole number of frames at the sampling rate is an error naming the multiple to use, with nothing changed. Each per-platform override of the sampling rate that the engine compresses at (a valid rate other than the default that is a multiple or a factor of it) is checked the same way, and the error names the platform; an override with a non-positive numerator is an error too. The current count gives saved=false and a note, with nothing saved. A count the data controller rejects is an error with nothing saved, and a failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the UAnimSequence. |
frame_count |
integer | yes | New number of frames (integer > 0). |
Returns: { sequence_path, frame_count, saved, save_error, note? }
set_anim_retarget_source¶
Destructive Idempotent
Set a UAnimSequence's retarget source and/or its retarget reference-pose sequence (RefPoseSeq) in one undo step and save it; pass at least one of the two, and an empty or 'None' value clears that field. Read the current values first with get_anim_sequence_info. A ref_pose_seq_path that does not load is an error before anything changes; a retarget_source the skeleton does not define is still written, with a warning in notes. Values the sequence already has are a success with changed=false, applied_count 0, saved=false and a note, and nothing is modified or saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Object path of the UAnimSequence to change, e.g. '/Game/Animation/Run_Fwd'. |
retarget_source |
string | no | Retarget-source name (FName). Must name an entry in the owning skeleton's retarget-source map to RESOLVE at runtime, but the property write persists regardless. Use 'None' (or empty) to clear. |
ref_pose_seq_path |
string | no | Optional object path of a UAnimSequence used as the additive retarget reference pose (RefPoseSeq). Pass empty/'None' to clear it. |
Returns: { anim_sequence_path, retarget_source, ref_pose_seq, ref_pose_seq_set, ref_pose_seq_cleared, applied_count, notes, changed, success, saved, save_error, note? }
set_anim_root_motion¶
Destructive Idempotent
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_sequence_path |
string | yes | Asset path of the UAnimSequence. |
enable_root_motion |
boolean | no | Whether to enable root motion extraction (default true) |
root_motion_root_lock |
string | no | Root lock mode: RefPose|AnimFirstFrame|Zero (default RefPose) |
force_root_lock |
boolean | no | Whether to force the root lock (default false) |
Returns: { anim_sequence_path, enable_root_motion, root_motion_root_lock, force_root_lock, changed, success, saved, save_error, message }
set_anim_transition_rule_automatic¶
Destructive Idempotent Refused during PIE
Set the automatic rule of one transition (source_state to target_state) in a state machine of an Animation Blueprint: bAutomaticRuleBasedOnSequencePlayerInState and AutomaticRuleTriggerTime, both written every call (omitted means false and 0). Marks it structurally modified and saves without compiling; refused while PIE runs unless force=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Asset path of the UAnimBlueprint |
machine_name |
string | yes | Name of the state machine that owns the transition |
source_state |
string | yes | Name of the source state (transition origin) |
target_state |
string | yes | Name of the target state (transition destination) |
enabled |
boolean | no | True lets the transition fire on its own when the sequence player of the source state nears its end (bAutomaticRuleBasedOnSequencePlayerInState); omitted writes false. |
trigger_time |
number | no | AutomaticRuleTriggerTime in seconds (default 0.0; negative = blend lead) |
Returns: { anim_blueprint_path, machine_name, source_state, target_state, enabled, trigger_time, rule_graph_has_result_node, saved, save_error? }
set_anim_transition_rule_from_bool¶
Destructive Idempotent Refused during PIE
Make a bool variable the rule of an existing transition (source_state to target_state) of an Animation Blueprint state machine: every rule-graph node but the result sink is removed, then a getter of variable_name is wired to the sink's bCanEnterTransition, so the transition passes while the variable is true, or while it is false with negate=true (a Not node goes between them). A missing blueprint, machine, transition or variable, or one that is not a single bool, is an error before anything changes; a variable not compiled yet (variable_kind new_blueprint) is checked against its declared type. Repeat calls rebuild the same rule (idempotent). Marks the blueprint structurally modified and saves without compiling (compile_anim_blueprint). Float test: set_anim_transition_rule_from_comparison; time-based: set_anim_transition_rule_automatic; empty rule: clear_anim_transition_rule; new transition: add_anim_transition. Refused while PIE runs unless force=true; a failed save is an error, the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Asset path of the UAnimBlueprint |
machine_name |
string | yes | Name of the state machine that owns the transition, matched without case |
source_state |
string | yes | Name of the source state or conduit (transition origin) |
target_state |
string | yes | Name of the target state or conduit (transition destination) |
variable_name |
string | yes | Name of an existing bool variable on the AnimBP (or its parent C++ class); true lets the transition pass, unless negate |
negate |
boolean | no | Optional bool (default false): pass the transition while the variable is false, through a Not (UKismetMathLibrary::Not_PreBool) node |
Returns: { anim_blueprint_path, machine_name, source_state, target_state, variable_name, negate, variable_kind, rule_set, sink_present, contributor_count, contributor_node_class, saved, save_error? }
set_anim_transition_rule_from_comparison¶
Destructive Idempotent Refused during PIE
Make (variable_name operator comparison_value) the rule of an existing transition (source_state to target_state) of an Animation Blueprint state machine: every rule-graph node but the result sink is removed, then a getter, a literal and a comparison node are wired into the sink's bCanEnterTransition. The variable must be a single float of either precision, compiled or only declared (variable_kind new_blueprint), and the test runs in double precision. A missing blueprint, machine, transition or variable, a variable of another type or an unknown operator is an error before anything changes. Repeat calls rebuild the same rule (idempotent); saves without compiling (compile_anim_blueprint). Bool rule: set_anim_transition_rule_from_bool; empty rule: clear_anim_transition_rule. Refused while PIE runs unless force=true; a failed save is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
anim_blueprint_path |
string | yes | Asset path of the UAnimBlueprint |
machine_name |
string | yes | Name of the state machine that owns the transition, matched without case |
source_state |
string | yes | Name of the source state or conduit (transition origin) |
target_state |
string | yes | Name of the target state or conduit (transition destination) |
variable_name |
string | yes | Name of an existing float variable (a Blueprint float, or a C++ float or double property) on the AnimBP or its parent class; the left-hand side of the comparison |
operator |
string | yes | One of "==", "!=", ">", "<", ">=", "<=" (compared against comparison_value) |
comparison_value |
number | no | Right-hand side of the comparison (default 0), written into the double literal node with six decimal places |
Returns: { anim_blueprint_path, machine_name, source_state, target_state, variable_name, operator, comparison_value, variable_kind, rule_set, sink_present, contributor_count, contributor_node_classes, saved, save_error? }
set_animation_speed¶
Destructive Idempotent
Set the play rate of a skeletal mesh component, found by object name in the editor world (or the world the world param selects), and switch its component tick on. Only a component in Use Animation Asset (single node) mode takes it: in Animation Blueprint mode nothing changes and actual_speed reads 0, so check speed_set_successfully. Transient: nothing is saved or undoable. A speed outside 0-10 or no such component is an error. For montages use play_animation with play_rate, or set_properties (rate_scale) on the asset.
| Parameter | Type | Required | Description |
|---|---|---|---|
component_name |
string | yes | Object name of the USkeletalMeshComponent, e.g. "CharacterMesh0", case-insensitive; the first actor in the world that has one with that name wins |
speed |
number | yes | Playback speed multiplier; must be between 0.0 and 10.0 |
world |
string | no | Optional world selector: absent/'editor' (default) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). |
Returns: { component_name: string, requested_speed: number, previous_speed: number, actual_speed: number, speed_set_successfully: bool, previous_tick_enabled: bool, current_tick_enabled: bool, component_valid: bool, component_class: string, anim_instance_class: string?, has_anim_instance: bool, anim_instance_valid: bool?, warning: string?, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }
set_blend_profile_bone¶
Destructive Idempotent
Set the blend scale of one bone (not its children) in a blend profile of a USkeleton asset, creating the profile when it does not exist yet (there is no separate create tool), in one undo step, then save the skeleton. Blend profiles let blends and montages weight bones differently; delete a whole profile with remove_blend_profile. Idempotent: the same scale again rewrites the same value and saves. Writing the profile's default scale (1 for a new weight profile) removes the bone's entry, as the editor does; stored_scale reads the value back. A skeleton that does not load, a bone_name that is not in the skeleton, or a missing profile with create_if_missing false is an error and nothing changes; a failed save makes success false, with saved false and save_error. Work on a project copy (create_editable_skeleton), not engine content.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Asset path of the USkeleton, e.g. "/Game/Characters/SK_Hero_Skeleton", as get_skeleton_info (skeleton_path) or create_editable_skeleton (asset_path) returns it. |
profile_name |
string | yes | Name of the blend profile on that skeleton, e.g. "UpperBody"; created when absent and create_if_missing is true. |
bone_name |
string | yes | Exact name of a bone in the skeleton's reference skeleton, e.g. "spine_01". |
scale |
number | yes | Blend scale for that bone, a float such as 0.5; it is not clamped (weight profiles usually use 0 to 1). |
create_if_missing |
boolean | no | true (default) creates the profile when the skeleton has none of that name; false makes a missing profile an error. |
Returns: { asset_path, profile_name, bone_name, scale, stored_scale, updated, created_profile, saved, save_error?, op: "set_blend_profile_bone" }
set_blend_space_interpolation¶
Destructive Idempotent
Set a blend space's INPUT-SMOOTHING (interpolation) per axis: smoothing time, damping ratio, max speed, smoothing type. Distinct from set_properties (which only sets the BlendParameters axis name/min/max/grid). Writes UBlendSpace::InterpolationParam[axis] via reflection. 1D smooths axis 0 only; 2D smooths X (axis 0) and Y (axis 1). Only the supplied fields change, in one undo transaction, then the blend space is saved; an unknown smoothing type is an error before anything changes, and values the axes already have are a success with changed=false, applied_count 0, saved=false and a note, with nothing modified or saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
blend_space_path |
string | yes | Full asset path of the UBlendSpace / UBlendSpace1D. |
x_interpolation_time |
number | no | Optional X-axis smoothing time in seconds (>= 0; 0 disables smoothing). |
x_damping_ratio |
number | no | Optional X-axis damping ratio (>= 0; only used when type is SpringDamper). |
x_max_speed |
number | no | Optional X-axis maximum speed in real units (>= 0; only used when type is SpringDamper or Exponential). |
x_interpolation_type |
string | no | Optional X-axis smoothing type: Averaged|Linear|Cubic|EaseInOut|Exponential|SpringDamper. |
y_interpolation_time |
number | no | Optional Y-axis smoothing time in seconds (2D only, >= 0). |
y_damping_ratio |
number | no | Optional Y-axis damping ratio (2D only, >= 0). |
y_max_speed |
number | no | Optional Y-axis maximum speed (2D only, >= 0). |
y_interpolation_type |
string | no | Optional Y-axis smoothing type (2D only): Averaged|Linear|Cubic|EaseInOut|Exponential|SpringDamper. |
Returns: { blend_space_path, is_1d, x_axis: {interpolation_time, damping_ratio, max_speed, interpolation_type}, y_axis: {...}, applied_count, notes, changed, saved, save_error, note? }
set_blend_space_sample¶
Destructive Idempotent
Edit a blend sample (by index): blend value and/or animation. At least one of blend_value / animation_path is required; both are individually optional so you can retime a sample without touching its animation, or swap the animation without moving it. A sample that already has those values is a success with value_edited=false, animation_replaced=false and saved=false, and the blend space is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
blendspace_path |
string | yes | Full asset path to the UBlendSpace. |
index |
integer | yes | Index of the sample to edit. |
blend_value |
number|array | no | New blend position: single number (1D) or array of up to 3 numbers (optional). |
animation_path |
string | no | Full asset path to a UAnimSequence to replace the sample's animation (optional). |
Returns: { blendspace_path, index, value_edited, animation_replaced, num_samples, samples, saved, save_error, message }
set_bone_parent¶
Destructive Idempotent
Move a bone, with its children, under another parent in the reference skeleton of a USkeleton asset (FReferenceSkeletonModifier::SetParent), or make it an extra root with an empty parent_name, in one undo step, then save the skeleton; no commit_bone_changes is needed. Bones may be re-indexed, so read bone_index (the bone's new index) and re-list with get_skeleton_info (load_full_data=true). Skeletal meshes bound to the skeleton are not changed. Use add_bone to create a bone under a parent, rename_bone to rename, set_bone_transform to move its reference pose. A bone or parent not in the skeleton, or a skeleton that does not load, is an error and nothing changes. The engine refuses a parent that is the bone itself or one of its descendants, and a parent it already has: then updated=false and bone_index -1, still a success, and the unchanged skeleton is saved again. A failed save (always while PIE runs) makes success false, with saved=false and save_error. Edit a project copy (create_editable_skeleton), not engine content.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | USkeleton asset as a package or object path, e.g. "/Game/Characters/SK_Hero_Skeleton", as get_skeleton_info returns it. |
bone_name |
string | yes | Exact name of the bone to move (case ignored), as get_skeleton_info lists it, e.g. "hand_r". |
parent_name |
string | no | Exact name of the new parent bone, e.g. "lowerarm_r"; empty or omitted makes the bone a root. |
Returns: { asset_path, bone_name, parent_name, bone_index, updated, not_found, bone_count, saved, save_error?, op: "set_bone_parent" }
set_bone_transform¶
Destructive Idempotent
Overwrite the local, parent-relative reference-pose transform of an existing bone in a USkeleton asset loaded by path, through FReferenceSkeletonModifier, then save the skeleton. local_transform is written whole: an omitted location or rotation becomes zero and an omitted or zero scale becomes 1, so to change one component read the others with get_bone_transform first. The modifier notifies the skeleton listeners itself, so commit_bone_changes is not needed. Every call writes and saves, even with the same transform. An unknown bone is an error, so not_found is never true in a reply; a failed save makes success false with save_error and keeps the change in memory. Only the skeleton changes: skeletal meshes using it keep their own reference pose. Other bone edits: set_bone_parent, rename_bone, add_bone.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeleton_path |
string | yes | Asset path of the USkeleton, e.g. "/Game/Characters/SK_Hero_Skeleton". |
bone_name |
string | yes | Name of an existing bone of that skeleton, e.g. "spine_01". |
local_transform |
object | yes | Object {location:[x,y,z], rotation:[pitch,yaw,roll] or {pitch,yaw,roll}, scale:[x,y,z]} relative to the parent bone; the whole transform is written, so an omitted location or rotation becomes zero and an omitted or zero scale becomes 1. |
Returns: { asset_path, bone_name, bone_index, updated, not_found, bone_count, saved, save_error?, op: "set_bone_transform" }
set_ik_bone_settings¶
Destructive Idempotent
Set bone-specific settings for a bone within a solver, as one undo transaction, then save the IK Rig asset; a failed save makes success false, with saved=false and save_error. Partial update (idempotent): only fields present in settings are applied; bone settings are auto-created if absent (a bone the rig skeleton lacks is an error, with nothing changed), and existing settings that already have those values give changed false, saved false and a note, with nothing saved. FullBodyIK snake_case keys: rotation_stiffness (0-1), position_stiffness (0-1), limit_x/limit_y/limit_z ("Free"/"Limited"/"Locked"), min_x, max_x, min_y, max_y, min_z, max_z, use_preferred_angles (bool), preferred_x, preferred_y, preferred_z. StretchLimb uses its live bone struct's camelCase keys (squashDirection: {x,y,z}). Only FullBodyIK and StretchLimb support per-bone settings; others return an honest error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Content path to the IK Rig asset. |
solver_index |
integer | yes | Index of the solver. |
bone_name |
string | yes | Name of the bone to modify. |
settings |
object | yes | Object with bone-specific fields to set. |
Returns: { ik_rig_path: string, solver_index: int, bone_name: string, success: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_ik_goal_settings¶
Destructive Idempotent
Set goal-specific settings for a goal connected to a solver, as one undo transaction, then save the IK Rig asset. Partial update (idempotent): only fields present in settings are applied. FullBodyIK uses snake_case keys: bone_name, chain_depth (0+), strength_alpha (0-1), pull_chain_alpha (0-1), pin_rotation (0-1). BodyMover uses its live goal struct's camelCase keys (influenceMultiplier 0-10, clamped server-side). Connect the goal first with connect_ik_goal_to_solver. Solvers without per-goal settings return an honest error. Settings that already have those values give changed false, saved false and a note, with nothing saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Content path to the IK Rig asset. |
solver_index |
integer | yes | Index of the solver. |
goal_name |
string | yes | Name of the goal to modify. |
settings |
object | yes | Object with goal-specific fields to set. |
Returns: { ik_rig_path: string, solver_index: int, goal_name: string, success: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_ik_retarget_chain_bones¶
Destructive Idempotent
Change the start bone, end bone and/or IK goal of an existing retarget chain in an IK Rig asset through the IK Rig controller (each change an undo transaction), then save the asset. Pass at least one of the three, else an error. A missing chain, a bone not in the rig skeleton or a goal_name the rig has no goal for is not an error but start_bone_set, end_bone_set or goal_set false, and that field is left unchanged. A value the chain already has is left alone; when nothing changes, changed is false, saved is false, a note says why and nothing is saved. A failed save makes success false, with saved=false and save_error. Siblings: add_ik_retarget_chain, rename_ik_retarget_chain.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
chain_name |
string | yes | Name of the retarget chain to mutate |
start_bone |
string | no | Optional new start bone |
end_bone |
string | no | Optional new end bone |
goal_name |
string | no | Optional new associated IK goal, which must be a goal of the rig; None clears the goal of the chain. |
Returns: { asset_path: string, chain_name: string, start_bone: string, end_bone: string, goal_name: string, start_bone_set: bool, end_bone_set: bool, goal_set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_ik_solver_bones¶
Destructive Idempotent
Set the start bone and/or end bone of one solver in an IK Rig asset (0-based stack index) through the IK Rig controller, which records each change as an undo transaction, then save the asset. Pass at least one bone, else an error. An out-of-range index, a bone missing from the rig skeleton, or a start or end bone on a solver type without one is not an error: start_bone_set or end_bone_set comes back false, next to the bones read back, and nothing is stored for it. A bone the solver already has is left alone; when nothing changes, changed is false, saved is false, a note says why and nothing is saved. A failed save makes success false, with saved=false and save_error. get_ik_solver_details reads them back.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
solver_index |
integer | yes | 0-based solver index |
start_bone |
string | no | Optional start bone name |
end_bone |
string | no | Optional end bone name |
Returns: { asset_path: string, solver_index: int, start_bone: string, end_bone: string, start_bone_set: bool, end_bone_set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_ik_solver_enabled¶
Destructive Idempotent
Enable or disable the solver at a 0-based index of an IK Rig asset through the IK Rig controller (one undo transaction), then save the asset; enabled is read back. An out-of-range index is not an error but set_ok false, and a solver already in the requested state gives changed false: in both cases saved is false, a note says why and nothing is saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Path to the UIKRigDefinition asset |
solver_index |
integer | yes | 0-based solver index |
enabled |
boolean | no | Optional bool; defaults to true |
Returns: { asset_path: string, solver_index: int, enabled: bool, set_ok: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_ik_solver_settings¶
Destructive Idempotent
Set detailed solver-specific settings on a solver in an IK Rig, as one undo transaction, then save the asset. Partial update: only fields present in settings are applied (idempotent). FullBodyIK uses snake_case keys: root_bone, iterations (0-1000), sub_iterations (0-1000), mass_multiplier (0-10), allow_stretch (bool), root_behavior (enum string), global_pull_chain_alpha (0-1), max_angle (0-45), over_relaxation (1-2). Other solver types (Limb/Pole/BodyMover/SetTransform/StretchLimb) accept the camelCase names of their live settings struct; ClampMin/ClampMax bounds are enforced server-side. Settings that already have those values give changed false, saved false and a note, with nothing saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_rig_path |
string | yes | Content path to the IK Rig asset. |
solver_index |
integer | yes | Index of the solver in the rig's solver stack. |
settings |
object | yes | Object with solver-type-specific fields to set. |
Returns: { ik_rig_path: string, solver_index: int, solver_type: string, success: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_montage_section_start_time¶
Destructive Idempotent
Set the StartTime on an existing FCompositeSection by zero-based section_index, in an undo transaction, and save it. The start time the section already has is a success with applied=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
section_index |
number | yes | Zero-based index into CompositeSections. |
start_time |
number | yes | Absolute section start time in seconds. |
Returns: { montage_path, section_index, start_time, applied, saved, save_error, message }
set_montage_segment_anim_sequence¶
Destructive Idempotent
Rebind an existing FAnimSegment on a slot track to a different UAnimSequence (resets segment start/end times to the new sequence's range, play rate and loop count to 1 and its start position to 0) in an undo transaction and save the montage. A segment that already references that sequence with those values is a success with applied=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
slot_name |
string | yes | Name of the slot track containing the segment (e.g. 'DefaultSlot'). |
segment_index |
number | yes | Zero-based index into the slot track's AnimSegments. |
anim_sequence_path |
string | yes | Object path of the UAnimSequence to reference (must share the montage's skeleton). |
Returns: { montage_path, slot_name, segment_index, anim_sequence_path, anim_start_time, anim_end_time, applied, saved, save_error, message }
set_montage_segment_start_time¶
Destructive Idempotent
Set the AnimStartTime on an existing FAnimSegment by (slot_name, segment_index), clamped to [0, AnimEndTime], in an undo transaction, and save the montage. AnimEndTime is left untouched. The (clamped) start time the segment already has is a success with applied=false and saved=false, and the montage is neither modified nor saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
slot_name |
string | yes | Name of the slot track containing the segment. |
segment_index |
number | yes | Zero-based index into the slot track's AnimSegments. |
start_time |
number | yes | New AnimStartTime in seconds (clamped to [0, AnimEndTime]). |
Returns: { montage_path, slot_name, segment_index, start_time, anim_end_time, applied, saved, save_error, message, note? }
set_morph_target_deltas¶
Destructive Idempotent
Overwrite all vertex deltas of an existing morph target on one LOD of a skeletal mesh asset with the deltas passed, in one undo step that restores the old deltas, then save the mesh. The undo step records the morph target only, not the mesh: undoing a step that holds the mesh rebuilds it, and the rebuild drops every morph target its imported data does not hold, those of create_skeletal_mesh_morph_target included. The LOD's old deltas are discarded; deltas whose position offset is 0.015 units or less are dropped (normal-only deltas included) and entries that are not objects are skipped, so deltas_set counts what was sent and total_deltas what that LOD kept. When the morph target had no data for a LOD below lod_index, the engine adds an empty one for it (created=true in deltas_per_lod). Every count is read back from the morph target after the save: total_deltas for lod_index, total_deltas_lod0 for LOD 0, deltas_per_lod for each LOD the morph target has, and total_deltas_all_lods. Repeating the same call writes the same data again. A missing morph target or a lod_index outside the mesh's LODs is an error and nothing changes; a failed save makes success false, with saved=false and save_error. Find the morph with get_skeletal_mesh_morph_targets (create_skeletal_mesh_morph_target adds one) and read the deltas themselves back with get_morph_target_deltas.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path of the USkeletalMesh asset (object or package path), e.g. '/Game/Characters/SKM_Hero'. |
morph_target_name |
string | yes | Name of an existing morph target, as get_skeletal_mesh_morph_targets lists it, e.g. 'Smile'. |
deltas |
array | yes | Array of objects {vertex_index, position_delta, normal_delta}: vertex_index is the vertex's index in that LOD's vertex buffer (not range-checked), the two deltas are {x, y, z} offsets in mesh-local units and a missing one is zero, e.g. [{"vertex_index": 0, "position_delta": {"x": 1.0, "y": 0, "z": 0}, "normal_delta": {"x": 0, "y": 0, "z": 0}}]. An empty array leaves the LOD with no deltas. |
lod_index |
integer | no | 0-based LOD index whose deltas are overwritten (default 0); it must be below num_lods from get_skeletal_mesh_info. |
Returns: { morph_target_name: string, lod_index: int, deltas_set: int, total_deltas: int, total_deltas_lod0: int, deltas_per_lod: [{ lod_index: int, total_deltas: int, written: bool, created: bool }], total_deltas_all_lods: int, saved: bool, save_error?: string }
set_morph_target_generated_by_engine¶
Destructive Idempotent
Flag morph targets of a skeletal mesh asset as generated by engine tools rather than imported from a source file, on every LOD, then save the mesh (a failed save is an error). The flag is only ever set, never cleared; names not on the mesh are ignored, and an empty or missing list flags every morph. When any flag changes the engine runs PreEditChange/PostEditChange on the mesh, which rebuilds it. modified says whether anything changed; flagged lists every morph now marked on LOD 0. Names come from get_skeletal_mesh_morph_targets.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset |
morph_target_names |
array | no | List of morph target names to flag; empty list = flag every morph on the mesh |
Returns: { skeletal_mesh_path: string, requested_count: int, named_list: bool, modified: bool, flagged: [string], note: string }
set_motion_warping_target¶
Destructive Idempotent
Change any fields of an existing warp target of an editor-world actor's UMotionWarpingComponent in one call -- its bone name, whether it follows its component, its location offset -- keeping the others. Pass only the fields to change; each is applied by its own step and read back, and the call stops at the first one refused (a missing target, follow without a component), with applied listing those already changed. WarpTargets is transient: the change lives in this editor session. Add one: add_motion_warping_target; read them: get_motion_warping_component_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_name |
string | yes | Engine name of the actor carrying the UMotionWarpingComponent |
warp_target_name |
string | yes | Name of the existing warp target on the component |
bone_name |
string | no | Optional bone (or socket) of the target's component the target follows |
follow_component |
boolean | no | Optional: whether the target follows its component |
location_offset |
array | no | Optional [x, y, z] offset applied to the target |
Returns: { actor_name: string, warp_target_name: string, applied: { field: that field's reply }, failed?: { label, command, error } (when a field is refused) }
set_pose_asset_base_pose¶
Destructive Idempotent
Set which named pose of a UPoseAsset is its base pose (UPoseAsset::SetBasePoseName) in an undo transaction, then save the asset; an empty or None base_pose_name goes back to the skeleton reference pose. A name the asset does not contain is an error before anything changes, and so is a base pose the engine does not take (read back from the asset), with nothing saved. The base pose the asset already has is a success with applied=false and saved=false, and nothing is modified or saved. A failed save makes success false, with saved=false and save_error. The base pose only drives evaluation of an additive pose asset, which additive and note report. Edit poses with add_pose_to_pose_asset, rename_pose_in_pose_asset and remove_pose_from_pose_asset.
| Parameter | Type | Required | Description |
|---|---|---|---|
pose_asset_path |
string | yes | Path to the UPoseAsset. |
base_pose_name |
string | no | Name of the pose to use as the base; empty/None resets to the reference pose. |
Returns: { pose_asset_path, base_pose_name, requested_name, applied, base_pose_index, is_reference_pose, additive, note, saved, save_error, message }
set_pose_search_database_schema¶
Destructive Idempotent
Bind a UPoseSearchSchema to a UPoseSearchDatabase (assigns the Schema field). Use it right after creating a database with no schema, or to rebind an existing one; a database without a schema cannot be indexed.
| Parameter | Type | Required | Description |
|---|---|---|---|
database_path |
string | yes | Asset path of the UPoseSearchDatabase (required). |
schema_path |
string | yes | Asset path of the UPoseSearchSchema to bind (required). |
Returns: { database_path, previous_schema_path, new_schema_path, changed: bool, saved: bool }
set_pose_search_schema_mirror_data_table¶
Destructive Idempotent
Bind (or rebind) the UMirrorDataTable of the schema's FPoseSearchRoledSkeleton entry under role (default role when omitted). Refused when no entry has that role.
| Parameter | Type | Required | Description |
|---|---|---|---|
asset_path |
string | yes | Asset path of the UPoseSearchSchema to edit (required). |
mirror_data_table_path |
string | yes | Asset path of the UMirrorDataTable to bind under the given role (required). |
role |
string | no | Role name (FName) identifying the FPoseSearchRoledSkeleton entry within a multi-character schema (optional; empty = default role). |
Returns: { asset_path, role, previous_mirror_data_table_path, new_mirror_data_table_path, changed, saved }
set_pose_search_schema_role¶
Destructive Idempotent
Rename the role (FName) of the schema's FPoseSearchRoledSkeleton entry under role_from (default role when omitted). Refused when new_role is already taken by another entry.
| Parameter | Type | Required | Description |
|---|---|---|---|
asset_path |
string | yes | Asset path of the UPoseSearchSchema to edit (required). |
new_role |
string | yes | New role name (FName) to assign to the entry, identifying it within a multi-character schema (required). |
role_from |
string | no | Existing role name (FName) of the FPoseSearchRoledSkeleton entry to rename (optional; empty = default role). |
Returns: { asset_path, previous_role, new_role, changed, saved }
set_pose_search_schema_skeleton¶
Destructive Idempotent
Bind (or rebind) the USkeleton, and optionally the UMirrorDataTable, of the schema's FPoseSearchRoledSkeleton entry under role; with a new role it appends a second character's entry to a multi-character schema. Idempotent by role: if an entry already exists under that role its skeleton is REPLACED (and its mirror table when mirror_data_table_path is given), already_existed true; otherwise one entry is appended for that role, added true. Other roles are never touched, and no duplicate role entry is ever pushed.
| Parameter | Type | Required | Description |
|---|---|---|---|
asset_path |
string | yes | Asset path of the UPoseSearchSchema to edit (required). |
skeleton_path |
string | yes | Asset path of the USkeleton to bind under the given role (required). |
role |
string | no | Role name (FName) identifying the FPoseSearchRoledSkeleton entry within a multi-character schema (optional; empty = default role). |
mirror_data_table_path |
string | no | Optional. Asset path of a UMirrorDataTable to bind under the role: given to the new entry, or written on the existing one. Omitted or empty: a new entry gets none and an existing entry keeps its table. A path that does not load as a UMirrorDataTable is an error and nothing is written. |
Returns: { asset_path, role, previous_skeleton_path, new_skeleton_path, previous_mirror_data_table_path, mirror_data_table_path, roled_skeleton_count, added, already_existed, changed, saved }
set_retarget_pose_bone_rotation¶
Destructive Idempotent
Set a bone's rotation offset in the current retarget pose (euler degrees) of an IK Retargeter asset, as one undo transaction, then save the asset; the offset is read back as quat_x..quat_w. Creates a default pose if none is current. bone_name is stored as given, not checked against the skeleton. When the pose to edit is already current and already holds exactly that offset for the bone, changed is false, saved is false, a note says so and nothing is saved. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Path to the UIKRetargeter asset |
bone_name |
string | yes | Name of the bone to update |
source_or_target |
string | no | Optional "Source" or "Target" scope; defaults to "Target" |
pitch |
number | no | Euler pitch in degrees (used when no quat is provided) |
yaw |
number | no | Euler yaw in degrees |
roll |
number | no | Euler roll in degrees |
quat_x |
number | no | Optional quaternion X |
quat_y |
number | no | Optional quaternion Y |
quat_z |
number | no | Optional quaternion Z |
quat_w |
number | no | Optional quaternion W |
rotation |
object | no | Optional nested {x, y, z, w} quaternion object |
pose_name |
string | no | Optional explicit retarget pose name; created if missing |
Returns: { asset_path: string, bone_name: string, source_or_target: string, retarget_pose: string, quat_x: number, quat_y: number, quat_z: number, quat_w: number, changed: bool, saved: bool, save_error?: string, note?: string }
set_retargeter_chain_mapping¶
Destructive Idempotent
Make source_chain drive target_chain in an IK Retargeter asset, overwriting the previous mapping, on every op whose chain mapping lists target_chain (or only the op named op_name), in one undo transaction, then save the asset. source_chain is not validated, so a misspelled name is stored as given. set_ok is false when no op lists target_chain; mapped_source is read back from the first matching op. When no op lists target_chain, or every one already maps it to source_chain, changed is false, saved is false, a note says why and nothing is saved. A failed save makes success false, with saved=false and save_error. get_ik_retargeter_info shows the per-op mappings.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Path to the UIKRetargeter asset |
source_chain |
string | yes | Name of the source retarget chain |
target_chain |
string | yes | Name of the target retarget chain to map to |
op_name |
string | no | Optional op name as get_ik_retargeter_info lists it; omitted, every op whose chain mapping lists target_chain is updated |
Returns: { asset_path: string, source_chain: string, target_chain: string, mapped_source: string, set_ok: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_retargeter_op_settings¶
Destructive Idempotent
Partial-merge a retarget op's live settings struct (only the JSON fields present are written -> idempotent), and optionally toggle the op enabled flag, as one undo transaction, then save the asset. Settings keys match get_retargeter_op_info (first char lower-cased, e.g. lODThreshold). Numeric ClampMin/ClampMax metadata is enforced after the merge. The optional enabled flag is applied via the controller. The payload echoes the read-back settings. When neither is given, or the op already has those settings and that enabled state, changed is false, saved is false, a note says why and nothing is saved. An out-of-range op_index is an error. A failed save makes success false, with saved=false and save_error.
| Parameter | Type | Required | Description |
|---|---|---|---|
ik_retargeter_path |
string | yes | Content path to the UIKRetargeter asset. |
op_index |
integer | yes | 0-based index of the op in the retargeter's op stack. |
settings |
object | no | Partial settings object; only present fields are written (e.g. { lODThreshold: 5 }). |
enabled |
boolean | no | Optional: enable/disable the op (applied via the controller). |
Returns: { asset_path: string, op_index: int, op_name: string, op_type: string, enabled: bool, settings: object, changed: bool, saved: bool, save_error?: string, note?: string }
set_rig_control_limits¶
Destructive Idempotent Refused during PIE
Set a scalar Control Rig control's min/max limits (Float/ScaleFloat/Integer). Enables the limit array for the control type and sets MinimumValue/MaximumValue type-correctly; once enabled, set_rig_control_value clamps via ApplyLimits. Verified read-back.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Path to the UControlRigBlueprint asset. |
control_name |
string | yes | Name of an existing control element (Float/ScaleFloat/Integer). |
min |
number | yes | Minimum value (number). |
max |
number | yes | Maximum value (number). |
enable |
boolean | no | Whether to enable the limits (optional, default true). |
Returns: { asset_path: string, control_name: string, control_type: string, min: number, max: number, limit_enabled: bool, saved: bool, save_error?: string }
set_rig_control_settings¶
Destructive Idempotent Refused during PIE
Edit an existing Control Rig control's shape/gizmo/color/limit-draw settings (the bits add_rig_element can't set when it adds a control). Read-modify-write: reads the control's FRigControlSettings, applies the provided fields, writes back via URigHierarchyController::SetControlSettings, recompiles + saves, and returns the verified read-back. Only the supplied fields change.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Path to the UControlRigBlueprint asset. |
control_name |
string | yes | Name of an existing control element. |
display_name |
string | no | Optional display name (FName) for the control. |
shape_name |
string | no | Optional gizmo shape name (e.g. "Default", "Box", "Sphere", "Circle"). |
shape_color |
array | no | Optional shape color [R, G, B] or [R, G, B, A] floats (0..1). |
shape_visible |
boolean | no | Optional bool: whether the gizmo shape is visible in 3D. |
draw_limits |
boolean | no | Optional bool: whether to draw the control's limits in debug. |
Returns: { asset_path: string, control_name: string, settings_applied: { display_name, shape_name, shape_color: [float], shape_visible, draw_limits }, applied_count: int, saved: bool, save_error?: string }
set_rig_control_shape_transform¶
Destructive Idempotent Refused during PIE
Set the local shape (gizmo) transform of an existing Control Rig control. Reads the current local shape transform, overrides only the supplied location/rotation/scale, writes back via URigHierarchy::SetControlShapeTransform, recompiles + saves, and returns the verified read-back. This positions the manipulator gizmo relative to the control, independent of the control's value.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Path to the UControlRigBlueprint asset. |
control_name |
string | yes | Name of an existing control element. |
location |
array | no | Optional [X, Y, Z] gizmo location. |
rotation |
array | no | Optional [Pitch, Yaw, Roll] gizmo rotation. |
scale |
array | no | Optional [X, Y, Z] gizmo scale. |
Returns: { asset_path: string, control_name: string, shape_transform: { location: [float], rotation: [float], scale: [float] }, applied_count: int, saved: bool, save_error?: string }
set_rig_control_value¶
Destructive Idempotent Refused during PIE
Set a Control Rig control's pose value (Initial + Current), type-correct per the control's ERigControlType. add_rig_element only seeds a control with the identity value. SetControlValue applies the control's limits, so a value outside an enabled min/max is clamped (set limits first with set_rig_control_limits). Verified read-back.
| Parameter | Type | Required | Description |
|---|---|---|---|
control_rig_path |
string | yes | Path to the UControlRigBlueprint asset. |
control_name |
string | yes | Name of an existing control element. |
value |
any | yes | The value: bool (Bool), number (Float/ScaleFloat/Integer), or [x,y(,z)] (Vector2D/Position/Scale/Rotator). |
Returns: { asset_path: string, control_name: string, control_type: string, value: any, saved: bool, save_error?: string }
set_skeletal_mesh_anim_class¶
Destructive Idempotent Refused during PIE
Repoint a Blueprint's skeletal mesh component AnimClass to a (fork) AnimBlueprint. Also handles the INHERITED native Character Mesh, which is not in the SCS and which the generic component-property setters cannot reach: it writes the CDO component archetype so spawned instances inherit the new AnimClass. Also sets AnimationMode=AnimationBlueprint.
| Parameter | Type | Required | Description |
|---|---|---|---|
blueprint_name |
string | yes | Character/Actor Blueprint (name or path), e.g. "BP_MyCharacter". |
anim_class |
string | yes | The AnimBlueprint to use: an ABP asset path (resolved to its generated class) or a "..._C" class path/name. |
component_name |
string | no | Skeletal mesh component to target (optional). Omit to target the Character's inherited Mesh. |
Returns: { blueprint, component, anim_class, previous_anim_class, animation_blueprint_mode, applied, wrote_cdo_archetype, saved, save_error?, success, error? } -- anim_class and animation_blueprint_mode are read back from the component; applied needs both
set_skeletal_mesh_component_tick¶
Destructive Idempotent
Switch a skeletal mesh component's ticking on or off, in the editor world or the one the world param picks: 'disable' stops it, 'enable' starts it and stops it ticking while the game is paused, 'custom' starts it and keeps its paused setting. A component that does not tick does not advance its animation. Returns the previous and current tick flags, read back from the component. Only these two flags change: for the play rate use set_animation_speed (which also switches ticking on), to start or stop an animation play_animation or stop_animation. Runtime state only: nothing is marked dirty, saved or undoable, and a PIE change ends with the session. Idempotent: the same mode again leaves the flags as they are. An unknown mode, world or component is an error and nothing changes.
| Parameter | Type | Required | Description |
|---|---|---|---|
component_name |
string | yes | Object name of the USkeletalMeshComponent, e.g. "CharacterMesh0", case-insensitive; the first actor in the world that has one with that name wins. get_actor_components lists an actor's component names |
event_settings |
string | yes | Tick mode, any case: 'enable' (tick on, not while paused), 'disable' (tick off) or 'custom' (tick on, paused setting kept) |
world |
string | no | Optional world selector: absent/'editor' (default) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). |
Returns: { component_name: string, requested_settings: string, events_configured: bool (read back: the component holds the flags the mode asks for; false makes success false), success: bool, error?: string, previous_tick_enabled: bool, previous_tick_when_paused: bool, current_tick_enabled: bool, current_tick_when_paused: bool, component_valid: bool, component_class: string, anim_instance_class: string?, has_anim_instance: bool, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }
set_skeletal_mesh_lod_build_settings¶
Destructive Idempotent
Change the stored build settings of one LOD of a skeletal mesh asset, only the fields you pass, and save the mesh. The mesh is not rebuilt here, so the settings take effect at its next build or reimport; a failed save returns an error. Returns settings_applied.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Skeletal mesh asset path, e.g. "/Game/Characters/SKM_Hero". |
lod_index |
integer | no | 0-based LOD index (default 0); an index the mesh does not have fails the call. |
recompute_normals |
boolean | no | Ignore the imported normals and recompute them (bRecomputeNormals). |
recompute_tangents |
boolean | no | Ignore the imported tangents and recompute them (bRecomputeTangents). |
use_mikk_t_space |
boolean | no | Use MikkTSpace when computing tangents (bUseMikkTSpace). |
compute_weighted_normals |
boolean | no | Weight computed normals by triangle area and corner angle (bComputeWeightedNormals). |
remove_degenerates |
boolean | no | Remove degenerate triangles at build time (bRemoveDegenerates). |
high_precision_tangents |
boolean | no | Store tangents at 16-bit instead of 8-bit precision (bUseHighPrecisionTangentBasis). |
high_precision_weights |
boolean | no | Use 16-bit instead of 8-bit skin weights for rendering (bUseHighPrecisionSkinWeights). |
full_precision_uvs |
boolean | no | Store UVs at full floating-point precision (bUseFullPrecisionUVs). |
bone_influence_limit |
integer | no | Maximum bone influences per vertex; 0 uses the DefaultBoneInfluenceLimit project setting, and values above the project limit have no effect. |
Returns: { skeletal_mesh_path: string, lod_index: int, settings_applied: {...}, mismatched: [string], applied: bool, saved: bool, save_error?: string } -- settings_applied is read back from the LOD; applied is false (and the call fails) when a written field reads back different
set_skeletal_mesh_lod_reduction_settings¶
Destructive Idempotent
Author a LOD's FSkeletalMeshOptimizationSettings (ReductionSettings) — the data bake_skeletal_mesh_lod consumes, making the bake steerable instead of running with defaults. Partial update (idempotent): only fields present are written. Enums are by name (full "SMTC_NumOfTriangles" or short "NumOfTriangles"). termination_criterion (SMTC_) and reduction_method (SMOT_) are DISTINCT.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset. |
lod_index |
integer | no | LOD index to modify (default 0). |
termination_criterion |
string | no | SMTC_*: NumOfTriangles|NumOfVerts|TriangleOrVert|AbsNumOfTriangles|AbsNumOfVerts|AbsTriangleOrVert. |
reduction_method |
string | no | SMOT_*: NumOfTriangles|MaxDeviation|TriangleOrDeviation. |
num_of_triangles_percentage |
number | no | float ratio of triangles to retain (0.1 = 10%). |
num_of_vert_percentage |
number | no | float ratio of vertices to retain. |
max_deviation_percentage |
number | no | float [0,1], accuracy target when reduction_method=MaxDeviation. |
max_num_of_triangles |
integer | no | int absolute triangle cap (ClampMin 4). |
max_num_of_verts |
integer | no | int absolute vertex cap (ClampMin 6). |
max_num_of_triangles_percentage |
integer | no | int (editor-only) cap when using percentage criterion (ClampMin 4). |
max_num_of_verts_percentage |
integer | no | int (editor-only) cap when using percentage criterion (ClampMin 6). |
base_lod |
integer | no | int base LOD index to generate from (default 0). |
silhouette_importance |
string | no | SMOI_*: Off|Lowest|Low|Normal|High|Highest. |
texture_importance |
string | no | SMOI_* importance of texture density. |
shading_importance |
string | no | SMOI_* importance of shading quality. |
skinning_importance |
string | no | SMOI_* importance of skinning quality. |
max_bones_per_vertex |
integer | no | int max bone influences per vertex (ClampMin 1). |
welding_threshold |
number | no | float vertex weld distance. |
normals_threshold |
number | no | float hard-edge angle in degrees (used when recalc_normals). |
recalc_normals |
boolean | no | bool recompute normals. |
remap_morph_targets |
boolean | no | bool remap morph targets onto the reduced LOD. |
enforce_bone_boundaries |
boolean | no | bool penalize collapses across different major bones. |
Returns: { skeletal_mesh_path: string, lod_index: int, settings_applied: {...}, mismatched: [string], applied: bool, saved: bool, save_error?: string } -- settings_applied is read back from the LOD; applied is false (and the call fails) when a written field reads back different
set_skeletal_mesh_lod_settings¶
Destructive Idempotent
Set the flat per-LOD scalars/enums of FSkeletalMeshLODInfo that no other setter covers (screen size, hysteresis, CPU access, morph error tolerance, skin cache usage, mesh deformer, prioritization weight) on one LOD or, with lod_index -1 or "all", on every LOD of the mesh, then save the mesh. Partial update (idempotent): only fields present are written; a bad skin_cache_usage or lod_index is refused before anything is written. A failed save is an error that leaves the change in memory. Per-platform screen-size overrides are left as they are.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset. |
lod_index |
integer|string | no | Optional. 0-based LOD index to modify (default 0), or -1 / "all" for every LOD. allow_cpu_access with every LOD goes through USkeletalMeshEditorSubsystem::SetAllowCPUAccess. |
screen_size |
number | no | Optional float, ScreenSize.Default: the screen size at which this LOD switches in (e.g. 0.3). |
lod_hysteresis |
number | no | float, avoids flickering at the LOD boundary. |
allow_cpu_access |
boolean | no | bool, keep this LOD's data on the CPU (e.g. for FX sampling). |
morph_target_position_error_tolerance |
number | no | float in microns, Clamp 0.01..10000 (default 20). |
skin_cache_usage |
string | no | ESkinCacheUsage by NAME: Auto|Disabled|Enabled (Disabled=255, parsed by name). |
allow_mesh_deformer |
boolean | no | bool, whether a Mesh Deformer is used on this LOD. |
weight_of_prioritization |
number | no | float >=0, weight given to BonesToPrioritize/SectionsToPrioritize. |
Returns: { skeletal_mesh_path: string, lod_index: int (-1 for every LOD), all_lods: bool, applied_lods: int, settings_applied: {...}, mismatched: [string], mismatched_lods: [int], old_screen_size?: float (one LOD), old_screen_sizes?: [float] (every LOD), applied: bool, saved: bool, save_error?: string } -- settings_applied and mismatched are read back from the first LOD written, mismatched_lods from every one; applied is false (and the call fails) when any differs
set_skeletal_mesh_material_slot¶
Destructive Idempotent
Assign a material to an existing material slot of a skeletal mesh ASSET (writes FSkeletalMaterial.MaterialInterface in USkeletalMesh::GetMaterials()). Address the slot by slot_index OR slot_name (exactly one). Never auto-grows the slot array.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the USkeletalMesh asset. |
material_path |
string | yes | Content path to the UMaterialInterface to assign. |
slot_index |
integer | no | Zero-based index of an existing material slot (mutually exclusive with slot_name). |
slot_name |
string | no | Name of an existing material slot to resolve to its index (mutually exclusive with slot_index). |
Returns: { skeletal_mesh_path: string, slot_index: int, slot_name: string, material_path: string, applied: bool, saved: bool, save_error?: string } -- material_path is read back from the slot
set_skeletal_mesh_min_lod¶
Destructive Idempotent
Set the minimum LOD a skeletal mesh asset (found by content path) renders, so the more detailed LODs below it are skipped while they stay in the asset. It replaces the whole Minimum LOD property with this one value, per-platform overrides included, or the per-quality-level one when the project setting UseSkeletalMeshMinLODPerQualityLevels is on. A missing min_lod, one outside 0 to the LOD count minus 1, or a mesh that does not load is an error. One undo step; the mesh is marked dirty but not saved, so follow with save_asset. old_min_lod is the value in effect before the call. To take a LOD out of the asset use remove_skeletal_mesh_lod; to change switch distances, set_skeletal_mesh_lod_settings with screen_size.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset, e.g. "/Game/Characters/SKM_Hero" |
min_lod |
integer | yes | New minimum LOD index, 0-based (must be in [0, NumLODs-1]) |
Returns: { skeletal_mesh_path: string, old_min_lod: int, min_lod: int, lod_count: int, applied: bool } -- min_lod is read back (GetMinLodIdx)
set_skeletal_mesh_section_flags¶
Destructive Idempotent
Turn shadow casting, runtime tangent recomputation (a GPU skin cache feature) and/or ray-tracing visibility on or off for one section of one LOD of a skeletal mesh asset found by content path; pass at least one of the three flags, and only the flags passed are written. The SkeletalMeshEditorSubsystem writes the section's user data (one undo step per flag) and rebuilds the render data, then the mesh is saved. A mesh that does not load, a LOD or section index its imported model does not have, or a call during PIE (the subsystem refuses it) is an error, and the flags written before the refused one stay in memory unsaved; so is a failed save, which leaves the change in memory. Setting the current value again re-applies and re-saves it. Read the section flags with get_skeletal_mesh_section_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset, e.g. "/Game/Characters/SKM_Hero" |
lod_index |
integer | no | 0-based LOD index containing the section (default 0) |
section_index |
integer | no | 0-based index of the section within that LOD, as get_skeletal_mesh_section_info lists it (default 0) |
cast_shadow |
boolean | no | Optional bool: whether the section casts shadows. |
recompute_tangent |
boolean | no | Optional bool: whether the GPU skin cache recomputes the section's tangents at runtime. |
visible_in_ray_tracing |
boolean | no | Optional bool: whether the section is visible in ray tracing (bVisibleInRayTracing). b_visible is accepted as an alias. |
b_visible |
boolean | no | Alias of visible_in_ray_tracing: the same value with the same meaning. Pass one of the two. |
Returns: { skeletal_mesh_path: string, lod_index: int, section_index: int, cast_shadow?: bool, recompute_tangent?: bool, visible_in_ray_tracing?: bool, applied: bool, saved: bool, save_error?: string } -- the flags are read back from the section; applied is false (and the call fails) when one differs
set_skeletal_mesh_socket_parent¶
Destructive Idempotent
Re-parent an existing socket on a skeletal mesh to a different bone. Validates the bone exists in the reference skeleton.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path to the skeletal mesh asset |
socket_name |
string | yes | Name of the socket to re-parent |
parent_bone_name |
string | yes | Bone name to attach the socket to (must exist in skeleton) |
Returns: { socket_name: string, parent_bone_name: string, skeletal_mesh_path: string, reparented: bool, saved: bool, save_error?: string } -- parent_bone_name is read back from the socket
set_skeletal_mesh_socket_transform¶
Destructive Idempotent
Set the local transform (relative to its parent bone) of an existing socket of a skeletal mesh asset, then save the asset that owns the socket: the mesh for one of its own sockets, else its skeleton for a socket that lives only there (socket_owner and saved_asset say which). location, rotation and scale are each optional but at least one is required; only those passed are written and the rest keep their current values, and the reply reads the transform back from the socket. Not an undo step; repeating the call writes and saves the same transform again. A missing socket, or an owner that cannot be saved (engine content, a read-only root), is an error and nothing changes; a failed save makes success false, with saved=false and save_error. Create the socket with add_skeletal_mesh_socket (or add_skeleton_socket on the skeleton), move it to another bone with set_skeletal_mesh_socket_parent, rename it with rename_skeletal_mesh_socket.
| Parameter | Type | Required | Description |
|---|---|---|---|
skeletal_mesh_path |
string | yes | Content path of the USkeletalMesh asset (object or package path), e.g. '/Game/Characters/SKM_Hero'. |
socket_name |
string | yes | Name of an existing socket on the mesh (or its skeleton), as add_skeletal_mesh_socket created it, e.g. 'hand_r_socket'. |
location |
array | no | Optional [x, y, z] offset from the parent bone, in centimetres. |
rotation |
array | no | Optional [pitch, yaw, roll] rotation relative to the parent bone, in degrees. |
scale |
array | no | Optional [x, y, z] scale relative to the parent bone, e.g. [1, 1, 1]. |
Returns: { socket_name: string, skeletal_mesh_path: string, socket_owner: "mesh"|"skeleton", saved_asset: string, saved: bool, save_error?: string, applied: {location, rotation, scale}, location_x: float, location_y: float, location_z: float, rotation_pitch: float, rotation_yaw: float, rotation_roll: float, scale_x: float, scale_y: float, scale_z: float }
sort_montage_segments¶
Destructive Idempotent
Sort the segments of one slot track of a UAnimMontage asset by their position on the track, ascending (FAnimTrack::SortAnimSegments), which then lays them end-to-end from 0 and clamps each segment's end time to its animation's length, in one undo step, and save the montage. Segment indices follow the new order, and the sort key is the track position, not the AnimStartTime that set_montage_segment_start_time edits. Idempotent: a track the sort leaves unchanged (already in order, end-to-end and within its animations) is a success with applied=false and saved=false, and nothing is modified or saved. An unknown montage or slot is an error; a failed save makes success false with saved=false and save_error. To close gaps but keep the array order: collapse_montage_segments; slot names: get_montage_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
montage_path |
string | yes | Full asset path of the montage (e.g. '/Game/MyGame/AM_Example'). |
slot_name |
string | yes | Name of the slot track to sort, e.g. "DefaultSlot" (case-insensitive); an unknown slot is an error. |
Returns: { montage_path, slot_name, segment_count, applied, saved, save_error, message }
stop_animation¶
Destructive
Stop montage playback on a skeletal mesh component with Montage_Stop and a 0.25 s blend-out: only montage_path when given, otherwise every active montage. Editor world unless the world param says otherwise; an unknown montage_path is an error. was_playing and playing cover any montage.
| Parameter | Type | Required | Description |
|---|---|---|---|
component_name |
string | yes | Object name of the USkeletalMeshComponent, e.g. "CharacterMesh0", case-insensitive; the first actor in the world that has one with that name wins |
montage_path |
string | no | Full asset path of a specific AnimMontage to stop; if omitted, stops all montages (optional) |
world |
string | no | Optional world selector: absent/'editor' (default) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). |
Returns: { component_name: string, was_playing: bool, playing: bool (true while a stopped montage blends out), stopped: bool (read back: the montage, or every montage, is no longer active; false makes success false), success: bool, error?: string, montage_path: string?, montage_name: string?, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }