unreal.PoseSearchInteractionLibrary¶
- class unreal.PoseSearchInteractionLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryExperimental, this feature might be removed without warning, not for production use
C++ Source:
Plugin: PoseSearch
Module: PoseSearch
File: PoseSearchInteractionLibrary.h
- classmethod calculate_full_aligned_transform(current_result, time_offset, warp_using_root_bone) Transform¶
this function calculates the mesh space transform for the AnimContext assigned the role CurrentResult.Role as CalculateFullAlignedTransforms does for all the AnimContext(s)
- Parameters:
current_result (PoseSearchBlueprintResult)
time_offset (float)
warp_using_root_bone (bool)
- Returns:
out_full_aligned_transform (Transform):
- Return type:
- classmethod calculate_full_aligned_transforms(current_result, time_offset, warp_using_root_bone) Array[Transform]¶
this function calculates the mesh space transforms (OutFullAlignedTransforms) the AnimContext(s) should reach within a time of TimeOffset to be consistently aligned to the selected UMultiAnimAsset (CurrentResult.SelectedAnim) at the selected time (CurrentResult.SelectedTime), given the interacting AnimContext(s) transforms (CurrentResult.ActorRootBoneTransforms, CurrentResult.ActorRootTransforms) if bWarpUsingRootBone is true the function will use the AnimContext root bone transforms, otherwise the mesh space transforms
- Parameters:
current_result (PoseSearchBlueprintResult)
time_offset (float)
warp_using_root_bone (bool)
- Returns:
out_full_aligned_transforms (Array[Transform]):
- Return type:
- classmethod calculate_no_aligned_transform(current_result, time_offset, warp_using_root_bone) Transform¶
this function calculates the mesh space transform (OutNoAlignedTransform), or root bone transform if bWarpUsingRootBone is true, the AnimContext will reach within a time of TimeOffset, if it continues playing the CurrentResult.SelectedAnim from CurrentResult.SelectedTime forward
- Parameters:
current_result (PoseSearchBlueprintResult)
time_offset (float)
warp_using_root_bone (bool)
- Returns:
out_no_aligned_transform (Transform):
- Return type:
- classmethod get_constraint(constraints, anim_context_role, socket_name) -> (out_desired_reach=float, out_transform=Transform, is_valid=bool)¶
Get Constraint
- Parameters:
constraints (Array[PoseSearchConstraint])
anim_context_role (Name)
socket_name (Name)
- Returns:
out_desired_reach (float):
out_transform (Transform):
is_valid (bool):
- Return type:
tuple
- classmethod get_montage_continuing_properties(anim_instance) PoseSearchContinuingProperties¶
Get Montage Continuing Properties
- Parameters:
anim_instance (AnimInstance)
- Return type:
- classmethod get_motion_match_interaction_constraint(anim_context, socket_name, compare_owning_actors=True) -> (out_desired_reach=float, out_transform=Transform, is_valid=bool)¶
Get Motion Match Interaction Constraint
- classmethod motion_match_interaction(availabilities, anim_context, pose_history_name, validate_result_against_availabilities=True) PoseSearchBlueprintResult¶
BlueprintCallable version of MotionMatchInteraction_Pure
- Parameters:
availabilities (Array[PoseSearchInteractionAvailability])
anim_context (Object)
pose_history_name (Name)
validate_result_against_availabilities (bool)
- Return type:
- classmethod motion_match_interaction_pure(availabilities, anim_context, pose_history_name, validate_result_against_availabilities=True) PoseSearchBlueprintResult¶
function publishing this character (via its AnimInstance) FPoseSearchInteractionAvailability to the UPoseSearchInteractionSubsystem, FPoseSearchInteractionAvailability represents the character availability to partecipate in an interaction with other characters for the next frame. that means there will always be one frame delay between publiching availabilities and getting a result back from MotionMatchInteraction_Pure!
if FPoseSearchBlueprintResult has a valid SelectedAnimation, this will be the animation assigned to this character to partecipate in this interaction. additional interaction properties, like assigned role, SelectedAnimation time, SearchCost, etc can be found within the result ContinuingProperties are used to figure out the continuing pose and bias it accordingly. ContinuingProperties can reference directly the UMultiAnimAsset or any of the roled UMultiAnimAsset::GetAnimationAsset, and the UPoseSearchInteractionSubsystem will figure out the related UMultiAnimAsset PoseHistoryName is the name of the pose history node used for the associated motion matching search if bValidateResultAgainstAvailabilities is true, the result will be invalidated if doesn’t respect the new availabilities
- Parameters:
availabilities (Array[PoseSearchInteractionAvailability])
anim_context (Object)
pose_history_name (Name)
validate_result_against_availabilities (bool)
- Return type:
- classmethod motion_match_multi(motion_match_multi_queries, pose_history_name, continuing_properties) Array[PoseSearchBlueprintResult]¶
function performing all the possible MotionMatching searches between the AnimContexts (eg AnimInstance(s)) defined in MotionMatchMultiQueries and compiled from the valid combination of the AnimContexts allowed Roles. Results will output the best mathing options for all those AnimContexts willing to partecipate in interactions. Users can iterate over Results, and assign the Results[i].SelectedAnim playback to the corresponding GetActor(Results[i])
- Parameters:
motion_match_multi_queries (Array[PoseSearchMotionMatchMultiQuery])
pose_history_name (Name)
continuing_properties (PoseSearchContinuingProperties)
- Returns:
results (Array[PoseSearchBlueprintResult]):
- Return type:
- classmethod update_constraints(out_constraints, delta_time, multi_anim_asset, anim_contexts, selected_time, is_mirrored, blend_parameters) Array[PoseSearchConstraint]¶
Update Constraints
- Parameters:
out_constraints (Array[PoseSearchConstraint])
delta_time (float)
multi_anim_asset (MultiAnimAsset)
selected_time (float)
is_mirrored (bool)
blend_parameters (Vector)
- Returns:
out_constraints (Array[PoseSearchConstraint]):
- Return type: