How to add subcomponent skeletal mesh track to sequence? (Metahuman)

I can add Metahuman to my sequence (by Python).

But tracks “Body” and “Face” do not adding automatically.

To assign animation i must place them into “Body” and “Face” subtraks of Metahuman.
I can find “Body” component of my actor by

Body = MyActor.get_component_by_class(unreal.SkeletalMeshComponent)

The questions are:

  1. How to add tracks as children of BP_EvgenyZ (by Python)? (What types of track are they?)
  2. How to bind them to corresponding components(by Python)?

2 Likes

Hi,

have you found a solution to this? I want to do the same thing; basically setting up a sequence with python with a MetaHuman in it and adding Animation Sequences to have a sequence playing something.

I done this with below codes in UE5.6
level_sequence = unreal.load_asset(path_to_ls)
blueprint_asset = unreal.load_asset(path_to_bp)
ls_editor_subsystem = unreal.get_editor_subsystem(unreal.LevelSequenceEditorSubsystem)
char_top_binding_proxy = ls_editor_subsystem.add_spawnable_from_class(level_sequence, blueprint_asset.generated_class())