unreal.AnimationSequencerDataModel

class unreal.AnimationSequencerDataModel(outer: Object | None = None, name: Name | str = 'None')

Bases: MovieSceneSequence

Animation Sequencer Data Model

C++ Source:

  • Plugin: AnimationData

  • Module: AnimationData

  • File: AnimSequencerDataModel.h

Editor Properties: (see get_editor_property/set_editor_property)

  • animated_bone_attributes (Array[AnimatedBoneAttribute]): [Read-Only]

  • cached_raw_data_guid (Guid): [Read-Only] Raw data GUID taken from UAnimSequence when initially populating - this allows for retaining compressed data state initially

  • curve_identifier_to_meta_data (Map[AnimationCurveIdentifier, AnimationCurveMetaData]): [Read-Only] Per-curve information holding flags/color, due to be deprecated in the future

  • legacy_curve_data (AnimationCurveData): [Read-Only]

  • modified_event (AnimDataModelModifiedDynamicEvent): [Read-Write] Dynamic delegate event allows scripting to register to any broadcast-ed notify.

  • movie_scene (MovieScene): [Read-Only] Movie scene instance containing FK Control rig and section representing the animation data

  • populated (bool): [Read-Only]

get_animation_sequence() AnimSequence
Returns:

The outer UAnimSequence object if found, otherwise returns a nullptr

Return type:

AnimSequence

get_bone_animation_tracks() Array[BoneAnimationTrack]

Get Bone Animation Tracks

Return type:

Array[BoneAnimationTrack]

get_bone_track_by_index(track_index) BoneAnimationTrack

Get Bone Track by Index

Parameters:

track_index (int32) –

Return type:

BoneAnimationTrack

get_bone_track_by_name(track_name) BoneAnimationTrack

Get Bone Track by Name

Parameters:

track_name (Name) –

Return type:

BoneAnimationTrack

get_bone_track_index(track) int32

Get Bone Track Index

Parameters:

track (BoneAnimationTrack) –

Return type:

int32

get_bone_track_index_by_name(track_name) int32

Get Bone Track Index by Name

Parameters:

track_name (Name) –

Return type:

int32

get_bone_track_names() Array[Name]

Populates the provided array with all contained (bone) track names

Returns:

out_names (Array[Name]): [out] Array containing all bone track names

Return type:

Array[Name]

get_frame_rate() FrameRate
Returns:

Frame rate at which the animation data is key-ed

Return type:

FrameRate

get_num_bone_tracks() int32
Returns:

Total number of bone animation tracks

Return type:

int32

get_number_of_float_curves() int32
Returns:

Total number of stored float curves

Return type:

int32

get_number_of_frames() int32
Returns:

Total number of frames of animation data stored

Return type:

int32

get_number_of_keys() int32
Returns:

Total number of animation data keys stored

Return type:

int32

get_number_of_transform_curves() int32
Returns:

Total number of stored FTransform curves

Return type:

int32

get_play_length() double
Returns:

Total length of play-able animation data

Return type:

double

is_valid_bone_track_index(track_index) bool

Is Valid Bone Track Index

Parameters:

track_index (int32) –

Return type:

bool

is_valid_bone_track_name(track_name) bool

Is Valid Bone Track Name

Parameters:

track_name (Name) –

Return type:

bool

property modified_event: AnimDataModelModifiedDynamicEvent

[Read-Write] Dynamic delegate event allows scripting to register to any broadcast-ed notify.

Type:

(AnimDataModelModifiedDynamicEvent)