unreal.AnimationAttributeIdentifierExtensions

class unreal.AnimationAttributeIdentifierExtensions(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: BlueprintFunctionLibrary

Script-exposed functionality for wrapping native functionality and constructing valid FAnimationAttributeIdentifier instances

C++ Source:

  • Module: Engine

  • File: AttributeIdentifier.h

classmethod create_attribute_identifier(animation_asset, attribute_name, bone_name, attribute_type, validate_exists_on_asset=False) AnimationAttributeIdentifier

Constructs a valid FAnimationAttributeIdentifier instance. Ensuring that the underlying BoneName exists on the Skeleton for the provided AnimationAsset.

Parameters:
  • animation_asset (AnimationAsset) – Animation asset to retrieve Skeleton from

  • attribute_name (Name) – Name of the attribute

  • bone_name (Name) – Name of the bone this attribute should be attributed to

  • attribute_type (ScriptStruct) – Type of the underlying data (to-be) stored by this attribute

  • validate_exists_on_asset (bool) – Whether or not the attribute should exist on the AnimationAsset. False by default.

Returns:

Valid FAnimationCurveIdentifier if the operation was successful

Return type:

AnimationAttributeIdentifier

classmethod is_valid(identifier) AnimationAttributeIdentifier or None
Parameters:

identifier (AnimationAttributeIdentifier) –

Returns:

Whether or not the Attribute Identifier is valid

identifier (AnimationAttributeIdentifier):

Return type:

AnimationAttributeIdentifier or None