Λογότυπο Ue Metahuman Animator

Ue Metahuman Animator

Κοινότητα
kevinpbuckley
ue-metahuman-animator

Facial performance to animation with MetaHuman Animator in Unreal Engine 5.8 — ingest footage into UFootageCaptureData (Capture Manager, Live Link Face iPhone takes, mono webcam/DSLR video), build a UMetaHumanIdentity (Mesh to MetaHuman, auto-rig service, Prepare for Performance), process a UMetaHumanPerformance from depth footage, monocular video or audio only (Speech2Face), and export UAnimSequence / ULevelSequence through UMetaHumanPerformanceExportUtils onto a MetaHuman face (Face_Archetype_Skeleton, Face_ControlBoard_CtrlRig). Use when scripting MetaHuman Animator (C++/Python), batch-converting USoundWave dialogue to face animation, ingesting iPhone or webcam takes, debugging CanProcess/StartPipeline failures, or applying exported animation to an assembled MetaHuman. Covers EDataInputType, UCaptureData, UMetaHumanIdentityFace, UMetaHumanIdentityPose, UMetaHumanDepthGenerator, UCaptureManagerIngestBlueprintLibrary, UMetaHumanBatchOperation, FAudioDrivenAnimationSolveOverrides, EAudioDrivenAnimationMood.

Add to TypingMind

Επισκόπηση

Εκδότηςkevinpbuckley
Αποθετήριοunreal-engine-skills
Όνομα δεξιότηταςue-metahuman-animator
Αστέρια
89
Διακλαδώσεις
9
Συνοδευτικά αρχεία
4
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 4

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό kevinpbuckley. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Ue Metahuman Animator στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/metahuman/ue-metahuman-animator
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/metahuman/ue-metahuman-animator .claude/skills/ue-metahuman-animator
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Ue Metahuman Animator σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Ue Metahuman Animator μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Ue Metahuman Animator δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

MetaHuman Animator (offline facial performance → animation)

MetaHuman Animator turns a recorded face performance — depth footage from an iPhone or stereo head-mounted camera, plain monocular video, or just an audio file — into a UAnimSequence of MetaHuman face-board control curves that plays on any MetaHuman. All of it lives in the MetaHuman Animator plugin (Engine/Plugins/MetaHuman/MetaHumanAnimator/, MetaHuman.uplugin); every processing module is Type: Editor, so nothing here runs in a cooked game. Ingest lives in the Capture Manager plugins (Engine/Plugins/VirtualProduction/CaptureManager*/) and the capture-data asset types in Engine/Plugins/VirtualProduction/CaptureData/.

When to use this skill

  • Converting dialogue USoundWave assets into face animation (single or batch) without any camera — the audio-only route.
  • Ingesting Live Link Face (iPhone) takes or webcam/DSLR video into UFootageCaptureData and processing them into animation.
  • Creating a UMetaHumanIdentity from footage or a mesh (Mesh to MetaHuman), auto-rigging it, and preparing it for performance processing, or pushing it into a MetaHuman Character.
  • Writing editor C++ or Python that drives UMetaHumanPerformance, exports UAnimSequence/ULevelSequence, and wires the result onto an assembled MetaHuman.
  • Diagnosing "Process" being greyed out, StartPipeline returning Disabled, missing curves on export, or depth/frame-rate/timecode mismatches.

Mental model

Capture (device/file) ──ingest──▶ UFootageCaptureData ──┐
                                                         ├─▶ UMetaHumanPerformance ──process──▶ FFrameAnimationData[]
UMetaHumanIdentity (face rig, "prepared") ──────────────┤        │
USoundWave (audio only) ────────────────────────────────┘        └──export──▶ UAnimSequence / ULevelSequence

Four asset types carry the pipeline:

AssetClassRole
Capture Data (Footage)UFootageCaptureData (CaptureData.h:214)Image sequences, depth sequences, audio tracks, camera calibrations, metadata (frame rate, device class), excluded frames
Capture Data (Mesh)UMeshCaptureData (CaptureData.h:90)A static/skeletal mesh scan used as an Identity pose
MetaHuman IdentityUMetaHumanIdentity (MetaHumanIdentity.h:66)The performer's digital double: a conformed template mesh + auto-rigged face skeletal mesh + trained predictive solvers
MetaHuman PerformanceUMetaHumanPerformance (MetaHumanPerformance.h:81)One take: input type, sources, solver settings, processing range, per-frame results, export

The three input routes

EDataInputType (MetaHumanPerformance.h:35) selects the solver stack and which properties are relevant. Everything else on the Performance is gated by EditConditions on this enum.

RouteInputTypeNeedsProduces
iPhone (Live Link Face, MetaHuman Animator capture mode) or stereo HMCDepthFootageFootageCaptureData with ImageSequences + DepthSequences (or ≥2 RGB views for stereo depth generation) + calibration, and an Identity that is auto-rigged and preparedHighest fidelity face + head pose + tongue
Webcam / DSLR / phone video, no depthMonoFootageFootageCaptureData with ImageSequences only; no IdentityFace via NNE realtime models, optional body tracking, head pose
Audio onlyAudioa USoundWave; no footage, no IdentitySpeech2Face lip/face animation, optional blinks and head motion, mood control

Two facts the editor hides from you:

  • Depth generation is stereo-only. UMetaHumanDepthGenerator::Process refuses footage with fewer than two image sequences and requires a two-camera UCameraCalibration (MetaHumanDepthGenerator.cpp:686-711). A single webcam video can never become DepthFootage; process it as MonoFootage.
  • Processing is asynchronous unless you ask otherwise. StartPipeline returns immediately and the pipeline runs with PushAsyncNodes; SetBlockingProcessing(true) switches it to PushSyncNodes and blocks the game thread until done (MetaHumanPerformance.cpp:2086-2104). Scripts must block or bind OnProcessingFinishedDynamic (MetaHumanPerformance.h:107).

What CanProcess() checks (MetaHumanPerformance.cpp:2464)

In order: not already processing; no other Performance is processing (only one at a time — CurrentlyProcessedPerformance, MetaHumanPerformance.h:710); then per route:

  • Audio: GetAudioForProcessing() non-null. Nothing else — audio runs on the CPU ORT runtime and skips the RHI check.
  • MonoFootage: footage initialised for image sequences; at least one of bFaceTracking or (bBodyTracking + body tracker modular feature present).
  • DepthFootage: face tracker modular feature present; footage initialised for ImageSequences | Metadata; calibration present (or ≥2 RGB views, no depth → stereo depth generation); depth present or ≥2 RGB views; Identity non-null with a UMetaHumanIdentityFace whose RigComponent is set, bIsAutoRigged is true and no predictive-solver training is running; DefaultTracker/DefaultSolver can process.
  • Footage routes additionally require FMetaHumanSupportedRHI::IsSupported() (D3D12 on Windows, Vulkan on Linux, Metal on Mac — MetaHumanSupportedRHI.cpp:31-35) and the MetaHuman authoring content to be present (FMetaHumanAuthoringObjects::ArePresent).
  • Finally the processing limit range must be non-empty.

GetCannotProcessTooltipText() (MetaHumanPerformance.h:608) mirrors the same ladder and is the fastest way to learn why processing is disabled.

Core workflow

A. Audio only (no camera)

  1. Create a UMetaHumanPerformance asset (Python: AssetTools.create_asset(..., unreal.MetaHumanPerformance, unreal.MetaHumanPerformanceFactoryNew()); C++: IAssetTools::CreateAsset with a null factory, or NewObject for a transient one).
  2. SetInputType(EDataInputType::Audio) then SetAudio(SoundWave) (MetaHumanPerformance.h:503, 507). Use the setters — they reset stale state and recompute the frame range; raw property writes do not.
  3. Optional: AudioDrivenAnimationSolveOverrides.Mood/MoodIntensity (:425), AudioDrivenAnimationOutputControls FullFace/MouthOnly (:376), bGenerateBlinks (:373), bDownmixChannels/AudioChannelIndex (:365, :369), HeadMovementMode (:247), VisualizationObject (:234) for a preview mesh or MetaHuman BP.
  4. SetBlockingProcessing(true); check CanProcess(); StartPipeline() must return EStartPipelineErrorType::None (:65: None, NoFrames, Disabled).
  5. Export with UMetaHumanPerformanceExportUtils::ExportAnimationSequence(Perf, Settings) (MetaHumanPerformanceExportUtils.h:310) with bShowExportDialog = false.

B. iPhone Live Link Face take (depth footage)

  1. Record in the Live Link Face app's MetaHuman Animator capture mode. Those takes carry depth_data.bin + depth_metadata.mhaical next to the .mov, frame_log.csv, audio_metadata.json and take.json (LiveLinkFaceMetadata.cpp:47-58, 224-232). ARKit-mode takes have blendshape CSVs instead of depth (:234) and can only be processed as MonoFootage.
  2. Ingest with Capture Manager: a ULiveLinkFaceDevice in Live Link Hub (IP + port 14785, LiveLinkFaceDevice.h:39-42) pulls takes off the phone through ILiveLinkDeviceCapability_Ingest (UpdateTakeList, GetTakeIdentifiers, GetTakeInformation, CreateIngestProcess/RunIngestProcess), or from script call UCaptureManagerIngestBlueprintLibrary::IngestLiveLinkFaceSync(TakeDir, Params, OutError) / IngestTakeArchiveSync for .cptake archives (CaptureManagerIngestBlueprintLibrary.h:242, 119). Assets land under UCaptureManagerEditorSettings::ImportDirectory.
  3. Build or reuse a UMetaHumanIdentity of the same performer (section D) and make sure it is auto-rigged and prepared for performance.
  4. Performance: SetInputType(DepthFootage), SetFootageCaptureData(CD), SetIdentity(Id); set Camera if the footage has several views; leave TimecodeAlignment = Relative unless you have real timecode. Optionally SetProcessingRange(Start, End) (:520, end exclusive). Process and export as in A.

C. Monocular video (webcam / DSLR)

  1. IngestMonoVideoSync(VideoPath, OptionalAudioPath, Slate, TakeNumber, Params, OutError) (CaptureManagerIngestBlueprintLibrary.h:153) → UFootageCaptureData with one image sequence (+ audio). .mp4/.mov only.
  2. Performance: SetInputType(MonoFootage), SetFootageCaptureData(CD). No Identity. Tune bFaceTracking (:314), bBodyTracking (:324, needs the body tracker plugin), HeadAllowedRotationLeftRight/UpDown + HeadRotationHandler (:399-413), bHeadStabilization, MonoSmoothingParams, and optionally EstimateFocalLength() (:629) when FocalLength is -1.
  3. Process and export as in A. Mono uses the NNE models in MonocularAnimationPipelineModels (:384); NNEBackend is NNERuntimeORTDml on Windows GPUs (HyprsenseNode.cpp:257).

D. Identity (Mesh to MetaHuman)

  1. Create UMetaHumanIdentity; GetOrCreatePartOfClass(UMetaHumanIdentityFace) (MetaHumanIdentity.h:98). Optional parts: UMetaHumanIdentityBody (Height, BodyTypeIndex), Hands, Outfit, Prop (MetaHumanIdentityParts.h:550-643).
  2. Add a Neutral pose: NewObject<UMetaHumanIdentityPose>(Face), Face->AddPoseOfType(EIdentityPoseType::Neutral, Pose), Pose->SetCaptureData(CD) (MetaHumanIdentityPose.h:20, 56; MetaHumanIdentityParts.h:238). A Teeth pose is optional and improves the teeth fit.
  3. Promote a frame: Pose->LoadDefaultTracker(), Pose->AddNewPromotedFrame(Index) → UMetaHumanIdentityFootageFrame (FrameNumber, bIsFrontView, MetaHumanIdentityPromotedFrames.h:197-204, 109). Track it with UPromotedFrameUtils::InitializeContourDataForFootageFrame and UMetaHumanIdentity::StartFrameTrackingPipeline(...) under SetBlockingProcessing(true) (PromotedFrameUtils.h:31; MetaHumanIdentity.h:135, 139).
  4. Face->Conform() → EIdentityErrorCode; UMetaHumanIdentity::HandleError(Code, bLogOnly) returns true when it is not an error (MetaHumanIdentityParts.h:138; MetaHumanIdentity.h:188).
  5. Auto-rig (cloud): IsLoggedInToService() / LogInToAutoRigService(), bind OnAutoRigServiceFinishedDynamicDelegate, call CreateDNAForIdentity(bLogOnly) (MetaHumanIdentity.h:145-155, 87). Offline alternative: ImportDNAFile(DnaPath, EDNADataLayer::All, BrowsJsonPath) (:123); ExportDNADataToFiles writes them back out (:127).
  6. Prepare for Performance = Face->RunPredictiveSolverTraining() (MetaHumanIdentityParts.h:184; async variant :190). Without it the Identity cannot be used by a DepthFootage Performance.
  7. To seed a MetaHuman Character from the Identity: UMetaHumanCharacterEditorSubsystem::ImportFromIdentity(Character, Identity, FImportFromIdentityParams) → EImportErrorCode (IdentityNotConformed if step 4 was skipped), inside TryAddObjectToEdit/RemoveObjectToEdit (MetaHumanCharacterEditorSubsystem.h:1437, 392, 38, 529, 541).

UMetaHumanPerformance API cheat sheet

MemberLineNotes
InputType, FootageCaptureData, Audio, Identity180, 185, 189, 214All have BlueprintSetters — use SetInputType/SetFootageCaptureData/SetAudio/SetIdentity (499-511)
Camera, TimecodeAlignment206, 210View name in multi-camera footage; ETimecodeAlignment None/Absolute/Relative (CaptureData.h:193)
ControlRigAssetReference, VisualizationObject226, 234Face board rig used for preview/baking (defaults to Face_ControlBoard_CtrlRig); preview skel mesh or MetaHuman BP
HeadMovementMode247EPerformanceHeadMovementMode TransformTrack / ControlRig / Disabled (:52)
StartFrameToProcess, EndFrameToProcess, SetProcessingRange287, 291, 520End is exclusive; negatives clamp to 0; held until source data loads
bSkipDiagnostics, MinimumDepthMapFaceCoverage, MinimumDepthMapFaceWidth450-458Depth diagnostics; results in DepthMapDiagnosticResults (538), DiagnosticsIndicatesProcessingIssue (121)
UserExcludedFrames, ProcessingExcludedFrames470, 474Ranges skipped / flagged bad
StartPipeline(bIsScriptedProcessing=true), CancelPipeline, IsProcessing, CanProcess486-495
SetBlockingProcessing, SetDepthDistanceRange, SetBodyTracking531, 528, 534
OnProcessingFinishedDynamic107BlueprintAssignable; fire-and-forget scripts bind this
ContainsAnimationDataType, GetAnimationData(Start, End), GetNumberOfProcessedFrames555-563FFrameAnimationData per frame (FrameAnimationData.h:44): Pose head transform, AnimationData control→value map, BodyAnimationData
GetAnimationCurveNames, GetHeadMesh, GetExportFrameRange605, 584, 568

C++ pattern — audio → AnimSequence (editor module)

Build.cs: PrivateDependencyModuleNames.AddRange(new[] { "MetaHumanPerformance", "MetaHumanSpeech2Face", "CaptureDataCore", "AssetTools", "UnrealEd" }); — editor target only.

cpp
#include "MetaHumanPerformance.h"
#include "MetaHumanPerformanceExportUtils.h"
#include "AssetToolsModule.h"

UAnimSequence* SolveSpeechToAnim(USoundWave* Wave, const FString& PackagePath, USkeleton* FaceSkeleton)
{
    IAssetTools& AssetTools = FModuleManager::LoadModuleChecked<FAssetToolsModule>("AssetTools").Get();
    // Null factory is allowed: CreateAsset falls back to NewObject<AssetClass>.
    UMetaHumanPerformance* Perf = Cast<UMetaHumanPerformance>(
        AssetTools.CreateAsset(TEXT("MHP_") + Wave->GetName(), PackagePath, UMetaHumanPerformance::StaticClass(), nullptr));
    if (!Perf) { return nullptr; }

    Perf->SetInputType(EDataInputType::Audio);          // BlueprintSetter: resets state, recomputes range
    Perf->SetAudio(Wave);
    Perf->AudioDrivenAnimationSolveOverrides.Mood = EAudioDrivenAnimationMood::AutoDetect;
    Perf->AudioDrivenAnimationSolveOverrides.MoodIntensity = 1.0f;
    Perf->AudioDrivenAnimationOutputControls = EAudioDrivenAnimationOutputControls::FullFace;
    Perf->HeadMovementMode = EPerformanceHeadMovementMode::ControlRig;
    Perf->SetBlockingProcessing(true);                  // run synchronously on this thread

    if (!Perf->CanProcess())
    {
        UE_LOG(LogTemp, Error, TEXT("%s"), *Perf->GetCannotProcessTooltipText().ToString());
        return nullptr;
    }
    if (Perf->StartPipeline(/*bIsScriptedProcessing*/ true) != EStartPipelineErrorType::None)
    {
        return nullptr;
    }

    UMetaHumanPerformanceExportAnimationSettings* Settings =
        UMetaHumanPerformanceExportUtils::GetExportAnimationSequenceSettings(Perf); // sensible defaults
    Settings->bShowExportDialog = false;
    Settings->PackagePath = PackagePath;
    Settings->AssetName = TEXT("AS_") + Wave->GetName();
    Settings->TargetSkeletonOrSkeletalMesh = FaceSkeleton;   // Face_Archetype_Skeleton or a MetaHuman face mesh
    Settings->ExportRange = EPerformanceExportRange::ProcessingRange;
    Settings->bEnableHeadMovement = true;                    // HeadYaw/Pitch/Roll + HeadTranslationX/Y/Z curves
    return UMetaHumanPerformanceExportUtils::ExportAnimationSequence(Perf, Settings);
}

GetExportAnimationSequenceSettings returns the mutable CDO pre-filled with the performance's folder, AS_<name>, ProcessingRange, head movement if available, and a Face_Archetype_Skeleton found under the Content Browser's current save path (MetaHumanPerformanceExportUtils.cpp:797-842) — always set TargetSkeletonOrSkeletalMesh explicitly in scripts.

Worked example — scripted audio-only batch (Python, editor)

Every call below is BlueprintCallable or a reflected UPROPERTY in the headers cited (MetaHumanPerformance.h:486-531, 365-425; MetaHumanPerformanceExportUtils.h:66-135, 302-310). Epic ships the same shape in Engine/Plugins/MetaHuman/MetaHumanAnimator/Content/Python/process_audio_performance.py, process_performance.py and export_performance.py.

python
import unreal

FACE_SKELETON = "/Game/MetaHumans/Common/Face/Face_Archetype_Skeleton.Face_Archetype_Skeleton"

def audio_to_anim(sound_wave_path: str, out_path: str, mood=unreal.AudioDrivenAnimationMood.AUTO_DETECT,
                  intensity: float = 1.0) -> unreal.AnimSequence | None:
    wave = unreal.load_asset(sound_wave_path)
    tools = unreal.AssetToolsHelpers.get_asset_tools()
    perf = tools.create_asset(asset_name=f"MHP_{wave.get_name()}", package_path=out_path,
                              asset_class=unreal.MetaHumanPerformance,
                              factory=unreal.MetaHumanPerformanceFactoryNew())

    # set_editor_property goes through the BlueprintSetters (SetInputType / SetAudio),
    # which reset state and recompute the processing range. Order matters: type first.
    perf.set_editor_property("input_type", unreal.DataInputType.AUDIO)
    perf.set_editor_property("audio", wave)

    overrides = unreal.AudioDrivenAnimationSolveOverrides()
    overrides.mood = mood                      # enumerators follow the C++ names: NEUTRAL, HAPPINESS, SADNESS, ANGER ...
    overrides.mood_intensity = intensity       # clamped 0..1
    perf.set_editor_property("audio_driven_animation_solve_overrides", overrides)
    perf.set_editor_property("audio_driven_animation_output_controls",
                             unreal.AudioDrivenAnimationOutputControls.FULL_FACE)
    perf.set_editor_property("generate_blinks", True)
    perf.set_editor_property("head_movement_mode", unreal.PerformanceHeadMovementMode.CONTROL_RIG)

    perf.set_blocking_processing(True)         # otherwise start_pipeline returns before any frame is solved
    if not perf.can_process():
        unreal.log_error(f"{perf.get_name()}: cannot process (audio missing or another performance is running)")
        return None
    err = perf.start_pipeline()                # bIsScriptedProcessing defaults to True
    if err != unreal.StartPipelineErrorType.NONE:
        unreal.log_error(f"{perf.get_name()}: start_pipeline -> {err}")
        return None
    unreal.log(f"{perf.get_name()}: solved {perf.get_number_of_processed_frames()} frames")

    settings = unreal.MetaHumanPerformanceExportAnimationSettings()
    settings.show_export_dialog = False        # headless: no path picker
    settings.package_path = out_path
    settings.asset_name = f"AS_{wave.get_name()}"
    settings.target_skeleton_or_skeletal_mesh = unreal.load_asset(FACE_SKELETON)
    settings.export_range = unreal.PerformanceExportRange.PROCESSING_RANGE
    settings.enable_head_movement = True
    settings.auto_save_anim_sequence = True
    anim = unreal.MetaHumanPerformanceExportUtils.export_animation_sequence(perf, settings)
    if anim is None:
        unreal.log_error("export_animation_sequence returned None (skeleton missing CTRL_expressions_ curves?)")
    return anim

for path in unreal.EditorAssetLibrary.list_assets("/Game/Audio/Dialogue", recursive=True):
    data = unreal.EditorAssetLibrary.find_asset_data(path)
    if data.asset_class_path.asset_name == "SoundWave":
        audio_to_anim(path, "/Game/Animation/Faces")

Run it with UnrealEditor-Cmd.exe <Project>.uproject -run=pythonscript -script=... or from the editor Python console. Level Sequence export (export_level_sequence) needs a live editor; Epic's scripts note it is not supported in headless -run=pythonscript mode.

For many files from C++ use UMetaHumanBatchOperation::RunProcess(FMetaHumanBatchOperationContext&) (MetaHumanBatchOperation.h:83, 31): fill AssetsToProcess with USoundWaves, OR the EBatchOperationStepsFlags (SoundWaveToPerformance | ProcessPerformance | ExportAnimSequence), set TargetSkeletonOrSkeletalMesh, mood/output controls and naming rules. The UMetaHumanSpeechTo*Settings objects (MetaHumanSpeechProcessingSettings.h:101-168) are the detail-panel payloads behind the Content Browser "Speech to Anim/Level Sequence" actions.

Applying the result to a MetaHuman

  • The exported UAnimSequence holds curves, not bone tracks (face only): one curve per face-board control (CTRL_expressions_*, plus CTRL_* GUI controls) and, when head movement is enabled, HeadYaw, HeadPitch, HeadRoll, HeadTranslationX/Y/Z (MetaHumanPerformanceExportUtils.cpp:100-105). Its skeleton is whatever you passed as TargetSkeletonOrSkeletalMesh — the MetaHuman Face_Archetype_Skeleton or the Face skeletal mesh of an assembled character.
  • On an assembled MetaHuman the Face component's post-process AnimBP (ABP_Face_PostProcess, MetaHumanCharacterEditorActor.cpp:74) runs RigLogic, which reads those curves and drives the face joints and blend shapes. So any way of playing the sequence works: a Sequencer Animation track bound to the Face component, a Play Animation node or a Slot in the face AnimBP, or USkeletalMeshComponent::PlayAnimation.
  • For a Sequencer-editable result export a Level Sequence instead (ExportLevelSequence, MetaHumanPerformanceExportUtils.h:314) with TargetMetaHumanClass set to the MetaHuman Blueprint (:271); the Performance bakes a Face_ControlBoard_CtrlRig Control Rig track and toggles the head control switch (SetHeadControlSwitchEnabled, :323).
  • Check curve compatibility first: Settings->IsTargetSkeletonCompatible(Perf->GetAnimationCurveNames(), Missing) (:158). Missing CTRL_expressions_ curves mean the skeleton is not a MetaHuman face skeleton.

Gotchas & edge cases

  • "Prepared for performance" is a real state. A DepthFootage Performance needs an Identity whose face has RigComponent, bIsAutoRigged == true and trained predictive solvers (MetaHumanPerformance.cpp:2535-2552; MetaHumanIdentityParts.h:348-356, 184). Auto-rigging is a cloud call (CreateDNAForIdentity) that needs an Epic login (LogInToAutoRigService) and finishes asynchronously on OnAutoRigServiceFinishedDynamicDelegate; run RunPredictiveSolverTraining() after it.
  • Async by default. Without SetBlockingProcessing(true) the pipeline runs on worker threads and StartPipeline returns at once; your script's next line sees zero frames. In blocking mode depth-footage processing also loads trackers synchronously (MetaHumanPerformance.cpp:1280-1286).
  • Only one Performance processes at a time (CurrentlyProcessedPerformance); a second CanProcess() returns false until the first finishes or is cancelled.
  • GPU/RHI. Footage routes require D3D12/Vulkan/Metal and the NNE runtimes the plugin depends on (NNERuntimeORT, listed in MetaHuman.uplugin); mono inference uses NNERuntimeORTDml, speech-to-face uses NNERuntimeORTCpu (Speech2FaceInternal.cpp:60). A -nullrhi commandlet cannot process footage; audio-only can.
  • Depth range. MinDistance/MaxDistance (cm, default 10–25) clip depth for stereo generation and HMC ingest (MetaHumanPerformance.h:429-433, MetaHumanGenerateDepthWindowOptions.h:51-61). A performer 40 cm from an HMC rig loses depth entirely; iPhone depth is already metric and ignores these.
  • Frame rate and timecode. SetFootageCaptureData rejects footage whose frame rate is invalid (:497). Image and depth tracks at different but compatible rates are rate-matched by dropping frames (MetaHumanPerformance.cpp:1108-1129). TimecodeAlignment Relative aligns tracks by their first frame; Absolute uses embedded timecode and will produce an empty range when sources have no timecode. Audio-only performances run at 30 fps when there is no footage (MetaHumanPerformance.cpp:1010); Speech2Face solves at 50 fps and resamples nearest-neighbour (Speech2Face.h:72).
  • Live Link Face capture mode matters. Only MetaHuman Animator mode records depth; ARKit mode gives video + blendshape CSVs and can only go the MonoFootage route. Since 5.6 the app writes .cptake archives; IngestLiveLinkFaceSync accepts both formats.
  • Mono head rotation limits. Frames past HeadAllowedRotationLeftRight (45°) / UpDown (30°) are unsolved; HeadRotationHandler chooses gap vs neutral pose (MetaHumanPerformance.h:399-413). Changing them requires reprocessing.
  • Export defaults depend on editor state. The default target skeleton is looked up relative to the Content Browser's initial save path; headless runs must set TargetSkeletonOrSkeletalMesh. bShowExportDialog defaults to true — set it false.
  • Mood enumerators. EAudioDrivenAnimationMood names are Happiness, Sadness, Anger, Confidence, ... with display names "Happy", "Sad" (SpeechAnimationSolverTypes.h:13-27); Python exposes the C++ names (HAPPINESS, not HAPPY). Check dir(unreal.AudioDrivenAnimationMood).
  • Deprecated ingest classes. UMetaHumanCaptureSource, UMetaHumanCaptureSourceSync, FMetaHumanTakeInfo/FMetaHumanTake are UE_DEPRECATED(5.7); the shipped create_capture_data.py still uses them. New code goes through Capture Manager.

Version notes

  • 5.7: MetaHumanCaptureSource module deprecated in favour of CaptureManager/CaptureManagerDevices; Capture Manager moved into Live Link Hub devices.
  • 5.8: ContainsAnimationData() → ContainsAnimationDataType(EFrameAnimationDataType); VisualizationMesh → VisualizationObject (accepts a MetaHuman BP); ControlRigClass → ControlRigAssetReference (FControlRigAssetStrongReference); UCaptureData::EInitializedCheck → global ECaptureDataInitializedCheck flags; body tracking (bBodyTracking, EPerformanceExportSkeleton, BodyRetargeter) added to mono processing and export.

References & source material

Engine source (UE 5.8 — all paths under Engine/Plugins/MetaHuman/MetaHumanAnimator/Source/):

  • MetaHumanPerformance/Public/MetaHumanPerformance.h:35 — EDataInputType.
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:52 — EPerformanceHeadMovementMode.
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:65 — EStartPipelineErrorType.
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:81 — UMetaHumanPerformance.
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:107 — OnProcessingFinishedDynamic.
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:180 — InputType, FootageCaptureData, Audio, Identity (180-214).
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:486 — StartPipeline, CancelPipeline, IsProcessing, CanProcess (486-495).
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:499 — SetFootageCaptureData, SetInputType, SetAudio, SetIdentity, SetProcessingRange, SetBlockingProcessing (499-531).
  • MetaHumanPerformance/Public/MetaHumanPerformance.h:560 — GetAnimationData, GetNumberOfProcessedFrames.
  • MetaHumanPerformance/Public/MetaHumanPerformanceExportUtils.h:20 — EPerformanceExportRange, EPerformanceExportSkeleton.
  • MetaHumanPerformance/Public/MetaHumanPerformanceExportUtils.h:48 — UMetaHumanPerformanceExportAnimationSettings.
  • MetaHumanPerformance/Public/MetaHumanPerformanceExportUtils.h:173 — UMetaHumanPerformanceExportLevelSequenceSettings.
  • MetaHumanPerformance/Public/MetaHumanPerformanceExportUtils.h:293 — UMetaHumanPerformanceExportUtils, ExportAnimationSequence (310), ExportLevelSequence (314).
  • MetaHumanPerformance/Private/MetaHumanPerformance.cpp:1075 — StartPipeline implementation; CanProcess (2464).
  • MetaHumanPerformance/Private/MetaHumanPerformanceExportUtils.cpp:100 — head movement curve names; GetExportAnimationSequenceSettings (797).
  • MetaHumanPerformance/Private/MetaHumanPerformanceFactoryNew.h:14 — UMetaHumanPerformanceFactoryNew.
  • MetaHumanIdentity/Public/MetaHumanIdentity.h:66 — UMetaHumanIdentity; auto-rig API (145-155); ImportDNAFile (123); StartFrameTrackingPipeline (135).
  • MetaHumanIdentity/Public/MetaHumanIdentityParts.h:106 — UMetaHumanIdentityFace; Conform (138); RunPredictiveSolverTraining (184); bIsAutoRigged (356).
  • MetaHumanIdentity/Public/MetaHumanIdentityPose.h:20 — EIdentityPoseType; UMetaHumanIdentityPose (38).
  • MetaHumanIdentity/Public/MetaHumanIdentityPromotedFrames.h:18 — UMetaHumanIdentityPromotedFrame; UMetaHumanIdentityFootageFrame (197).
  • MetaHumanIdentity/Public/PromotedFrameUtils.h:22 — UPromotedFrameUtils.
  • MetaHumanSpeech2Face/Public/AudioDrivenAnimationConfig.h:13 — FAudioDrivenAnimationModels, EAudioDrivenAnimationOutputControls (29), FAudioDrivenAnimationSolveOverrides (36).
  • MetaHumanSpeech2Face/Public/Speech2Face.h:20 — FSpeech2Face.
  • MetaHumanSpeech2Face/Private/Speech2FaceInternal.cpp:54 — NNERuntimeORT / NNERuntimeORTCpu requirement.
  • MetaHumanBatchProcessor/Public/MetaHumanBatchOperation.h:19 — EBatchOperationStepsFlags, FMetaHumanBatchOperationContext (31), UMetaHumanBatchOperation (76).
  • MetaHumanBatchProcessor/Public/MetaHumanSpeechProcessingSettings.h:101 — UMetaHumanSpeechToPerformance, UMetaHumanSpeechToAnimSequenceProcessingSettings (132), UMetaHumanSpeechToLevelSequenceSettings (158).
  • MetaHumanDepthGenerator/Private/MetaHumanDepthGenerator.h:15 — UMetaHumanDepthGenerator.
  • MetaHumanDepthGenerator/Private/Widgets/MetaHumanGenerateDepthWindowOptions.h:13 — UMetaHumanGenerateDepthWindowOptions.
  • MetaHumanDepthGenerator/Private/MetaHumanDepthGenerator.cpp:686 — two-image-sequence and calibration requirements.
  • MetaHumanCaptureSource/Public/MetaHumanCaptureSource.h:97 — UMetaHumanCaptureSource (deprecated 5.7).
  • MetaHumanCaptureSource/Public/MetaHumanCaptureSourceSync.h:18 — UMetaHumanCaptureSourceSync (deprecated 5.7).
  • MetaHumanCaptureSource/Public/MetaHumanTakeData.h:27 — FMetaHumanTakeInfo, FMetaHumanTake (115).
  • MetaHumanPipeline/Public/Nodes/SpeechToAnimNode.h:15 — FSpeechToAnimNode.
  • MetaHumanPipeline/Private/Nodes/HyprsenseNode.cpp:257 — NNERuntimeORTDml GPU backend for mono tracking.
  • MetaHumanCore/Public/MetaHumanSupportedRHI.h:11 — FMetaHumanSupportedRHI; MetaHumanCore/Private/MetaHumanSupportedRHI.cpp:31.
  • MetaHumanCore/Public/MetaHumanAuthoringObjects.h:12 — FMetaHumanAuthoringObjects::ArePresent.
  • MetaHumanFaceAnimationSolver/Public/MetaHumanFaceAnimationSolver.h:33 — UMetaHumanFaceAnimationSolver.
  • MetaHumanFaceContourTracker/Public/MetaHumanFaceContourTrackerAsset.h:23 — UMetaHumanFaceContourTrackerAsset.
  • MetaHumanConfig/Public/MetaHumanConfig.h — UMetaHumanConfig, EMetaHumanConfigType.

Engine source (UE 5.8 — all paths under Engine/Plugins/MetaHuman/MetaHumanCoreTechLib/Source/):

  • MetaHumanCoreTech/Public/FrameAnimationData.h:44 — FFrameAnimationData; EFrameAnimationDataType (33).
  • MetaHumanCoreTech/Public/MetaHumanCommonDataUtils.h:48 — GetAnimatorPluginFaceControlRigPath, GetDefaultControlRigFromRegistry (34).
  • MetaHumanPipelineCore/Public/Nodes/HyprsenseRealtimeNode.h:42 — EFaceUnsolvedFrameBehavior; FMonocularAnimationPipelineModels (59).

Engine source (UE 5.8 — all paths under Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/):

  • MetaHumanCharacterEditor/Public/MetaHumanCharacterEditorSubsystem.h:38 — EImportErrorCode; FImportFromIdentityParams (392); UMetaHumanCharacterEditorSubsystem (491); TryAddObjectToEdit (529); ImportFromIdentity (1437).
  • MetaHumanCharacterEditor/Private/MetaHumanCharacterEditorActor.cpp:74 — face post-process AnimBP (ABP_Face_PostProcess).

Engine source (UE 5.8 — all paths under Engine/Plugins/VirtualProduction/):

  • CaptureData/Source/CaptureDataCore/Public/CaptureData.h:40 — UCaptureData; UMeshCaptureData (90); EFootageDeviceClass (111); FFootageCaptureMetadata (123); ETimecodeAlignment (193); UFootageCaptureData (214).
  • CaptureData/Source/CaptureDataEditor/Public/CaptureDataFactory.h:30 — UFootageCaptureDataFactory.
  • CaptureData/Source/CaptureDataUtils/Public/ImageSequenceTimecodeUtils.h:13 — UImageSequenceTimecodeUtils.
  • CaptureManager/CaptureManagerEditor/Source/CaptureManagerIngestBlueprint/Private/CaptureManagerIngestBlueprintLibrary.h:105 — UCaptureManagerIngestBlueprintLibrary; IngestMonoVideoSync (153); IngestLiveLinkFaceSync (242); IngestTakeArchiveSync (119).
  • CaptureManager/CaptureManagerEditor/Source/CaptureManagerEditorSettings/Public/Settings/CaptureManagerEditorSettings.h:23 — UCaptureManagerEditorSettings; ImportDirectory (82).
  • CaptureManager/CaptureManagerDevices/Source/CPSLiveLinkDevice/Public/LiveLinkFaceDevice.h:50 — ULiveLinkFaceDevice; ULiveLinkFaceDeviceSettings (27).
  • CaptureManager/CaptureManagerApp/Source/LiveLinkCapabilities/Public/Ingest/LiveLinkDeviceCapability_Ingest.h:38 — ILiveLinkDeviceCapability_Ingest.
  • CaptureManager/CaptureManagerCore/Source/CaptureMetadataExtraction/Internal/LiveLinkFaceMetadata.cpp:47 — Live Link Face take file names; MHA vs ARKit file sets (224, 234).

Other engine source (UE 5.8):

  • Engine/Plugins/Animation/AudioDrivenAnimation/StreamingADA/Source/SpeechAnimationSolver/Public/SpeechAnimationSolverTypes.h:13 — EAudioDrivenAnimationMood.
  • Engine/Source/Developer/AssetTools/Public/IAssetTools.h:349 — CreateAsset (null factory allowed).

Shipped Python examples (UE 5.8): Engine/Plugins/MetaHuman/MetaHumanAnimator/Content/Python/ (process_audio_performance.py, process_performance.py, process_monocular_performance.py, create_identity_for_performance.py, export_performance.py, create_capture_data.py) and Engine/Plugins/MetaHuman/MetaHumanAnimator/Content/DepthGenerator/depth_generator_example.py.

Deep-dive references in this skill:

Related skills: ue-control-rig-and-ik, ue-animation-system, ue-sequencer-and-cinematics.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Ue Metahuman Animator;

Facial performance to animation with MetaHuman Animator in Unreal Engine 5.8 — ingest footage into UFootageCaptureData (Capture Manager, Live Link Face iPhone takes, mono webcam/DSLR video), build a UMetaHumanIdentity (Mesh to MetaHuman, auto-rig service, Prepare for Performance), process a UMetaHumanPerformance from depth footage, monocular video or audio only (Speech2Face), and export UAnimSequence / ULevelSequence through UMetaHumanPerformanceExportUtils onto a MetaHuman face (Face_Archetype_Skeleton, Face_ControlBoard_CtrlRig). Use when scripting MetaHuman Animator (C++/Python), batch-c...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Ue Metahuman Animator στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Ue Metahuman Animator είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Ue Metahuman Animator στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/metahuman/ue-metahuman-animator. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Ue Metahuman Animator;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Ue Metahuman Animator;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Ue Metahuman Animator με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Ue Metahuman Animator;

Δημοσιεύεται στο GitHub από τον λογαριασμό kevinpbuckley. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇