unreal.AnimationWarpingLibrary¶
- class unreal.AnimationWarpingLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryExposes operations related to Animation Warping
C++ Source:
Plugin: AnimationWarping
Module: AnimationWarpingRuntime
File: AnimationWarpingLibrary.h
- classmethod apply_delta_to_offset_root_bone(offset_root_bone_node, translation_world, rotation_world) None¶
Apply a delta translation and rotation to the simulated transform inside a offset root bone node. This is useful for moving the root bone offset, e.g. when standing on a moving platform
- Parameters:
offset_root_bone_node (OffsetRootBoneAnimNodeReference)
translation_world (Vector)
rotation_world (Quat)
- classmethod convert_to_offset_root_bone_node_pure(node) -> (offset_root_bone_node=OffsetRootBoneAnimNodeReference, result=bool)¶
Get a root bone offset node context from an anim node context
- Parameters:
node (AnimNodeReference)
- Returns:
offset_root_bone_node (OffsetRootBoneAnimNodeReference):
result (bool):
- Return type:
tuple
- classmethod get_curve_value_from_animation(animation, curve_name, time) float or None¶
Helper function to extract the value of a curve in an animation at a given time
- Parameters:
animation (AnimSequenceBase)
curve_name (Name)
time (float)
- Returns:
out_value (float):
- Return type:
float or None
- classmethod get_float_value_from_curve(curve, time) float or None¶
Helper function to extract the float value from a curve asset at a given time. To be used inside AnimationBlueprint and assumes AnimBP holds reference to CurveAsset for it to be valid.
- Parameters:
curve (CurveFloat)
time (float)
- Returns:
out_value (float):
- Return type:
float or None
- classmethod get_offset_root_transform(node) Transform¶
Get the current world space transform from the offset root bone animgraph node
- Parameters:
node (AnimNodeReference)
- Return type:
- classmethod get_vector_value_from_curve(curve, time) Vector or None¶
Helper function to extract the vector value from a curve asset at a given time. To be used inside AnimationBlueprint and assumes AnimBP holds reference to CurveAsset for it to be valid.
- Parameters:
curve (CurveVector)
time (float)
- Returns:
out_value (Vector):
- Return type:
Vector or None