unreal.MetaHumanIdentity¶
- class unreal.MetaHumanIdentity(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectMetaHuman Identity Asset
Provides the tools to auto-generate a fully rigged Skeletal Mesh of a human face from Capture Data (Mesh or Footage) by tracking the facial features, fitting a Template Mesh having MetaHuman topology to the tracked curves, and sending the resulting mesh to MetaHuman Service, which returns an auto-rigged SkeletalMesh resembling the person from the Capture Data.
The obtained Skeletal Mesh can be used by MetaHuman Performance asset to generate an Animation Sequence from video footage.
MetaHuman Identity Asset Toolkit can also create a full MetaHuman in MetaHuman Creator, downloadable through Quixel Bridge.
C++ Source:
Plugin: MetaHuman
Module: MetaHumanIdentity
File: MetaHumanIdentity.h
Editor Properties: (see get_editor_property/set_editor_property)
on_auto_rig_service_finished_dynamic_delegate(OnAutoRigServiceFinishedDynamicDelegate): [Read-Write] Dynamic delegate called when the pipeline finishes runningparts(Array[MetaHumanIdentityPart]): [Read-Write] The list of Parts the make this Identity. See UMetaHumanIdentityPartthumbnail_info(ThumbnailInfo): [Read-Only] Information for thumbnail renderingviewport_settings(MetaHumanIdentityViewportSettings): [Read-Write] Stores the viewport settings for this MetaHuman Identity
- can_add_part_of_class(part_class) bool¶
Returns true if the given Part class can be added to the MetaHuman Identity being edited
- can_add_pose_of_class(pose_class, pose_type) bool¶
Returns true if the given Pose class can be added to the MetaHuman Identity being edited
- Parameters:
pose_type (IdentityPoseType)
- Return type:
- diagnostics_indicates_processing_issue() Text or None¶
Diagnostics Indicates Processing Issue
- Returns:
out_diagnostics_warning_message (Text):
- Return type:
Text or None
- export_dna_data_to_files(dna_path_with_name, brows_path_with_name) bool¶
Export DNA and brows data to files at selected location
- find_part_of_class(part_class) MetaHumanIdentityPart¶
Looks for a Part of the given class in the array of parts. Returns nullptr if no Part was found
- Parameters:
- Return type:
- get_or_create_part_of_class(part_class) MetaHumanIdentityPart¶
Looks for a Part of the given class in the array of parts. Creates and return a new one if not found
- Parameters:
- Return type:
- classmethod handle_error(error_code, log_only=False) bool¶
Deals with error produced by the MetaHuman Identity process - logs message and optionally show user dialog
- Parameters:
error_code (IdentityErrorCode)
log_only (bool)
- Return type:
- import_dna_file(dna_file_path, dna_data_layer, brows_file_path) IdentityErrorCode¶
Initialize the MetaHuman Identity from a DNA file. The MetaHuman Identity must already have a face for this to succeeded
- Parameters:
dna_file_path (str)
dna_data_layer (DNADataLayer)
brows_file_path (str)
- Return type:
- is_logged_in_to_service() bool¶
This function checks if there’s a session stored. There is NO request sent to check if the token is actually valid
- Return type:
- property on_auto_rig_service_finished_dynamic_delegate: OnAutoRigServiceFinishedDynamicDelegate¶
[Read-Write] Dynamic delegate called when the pipeline finishes running
- Type:
(OnAutoRigServiceFinishedDynamicDelegate)
- property parts: None¶
[Read-Only] The list of Parts the make this Identity. See UMetaHumanIdentityPart
- Type:
- set_blocking_processing(blocking_processing) None¶
Set Blocking Processing
- Parameters:
blocking_processing (bool)
- start_frame_tracking_pipeline(image_data, width, height, depth_frame_path, pose, promoted_frame, show_progress) None¶
Start Frame Tracking Pipeline
- Parameters:
width (int32)
height (int32)
depth_frame_path (str)
pose (MetaHumanIdentityPose)
promoted_frame (MetaHumanIdentityPromotedFrame)
show_progress (bool)
- property viewport_settings: MetaHumanIdentityViewportSettings¶
[Read-Write] Stores the viewport settings for this MetaHuman Identity