unreal.MetaHumanIdentityFace¶
- class unreal.MetaHumanIdentityFace(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
MetaHumanIdentityPartMetaHuman Identity Face
C++ Source:
Plugin: MetaHuman
Module: MetaHumanIdentity
File: MetaHumanIdentityParts.h
Editor Properties: (see get_editor_property/set_editor_property)
default_solver(MetaHumanFaceFittingSolver): [Read-Write] The default solverdna_pivot(Vector): [Read-Write] Holds the DNA Pivot as returned from the autorigging service deprecated: The new autorigging service doesn’t provide DNA Pivotdna_scale(float): [Read-Write] Holds the DNA Scale as returned from the autorigging service deprecated: The new autorigging service doesn’t provide DNATo Scaledna_to_scan_transform(Transform): [Read-Write] Holds the DNAToScan transform as returned from the autorigging service deprecated: The new autorigging service doesn’t provide DNAToScan transform matrixhas_fitted_eyes(bool): [Read-Only] True if data-driven eyes was used during mesh conformationis_auto_rigged(bool): [Read-Only] True if this face has autorigged DNA applied either through AutoRig Service or if it was imported manually through Import functionalityis_conformed(bool): [Read-Only] True if this face was conformed at least oncemaximum_scale_difference_from_average(float): [Read-Write] The maximum percentage difference an autorigged face result is allowed to differ from an average MetaHuman. Above this value a diagnostic warning will be flagged.minimum_depth_map_face_coverage(float): [Read-Write] The minimum percentage of the face region which should have valid depth-map pixels. Below this value a diagnostic warning will be flagged.minimum_depth_map_face_width(float): [Read-Write] The minimum required width of the face region on the depth-map in pixels. Below this value a diagnostic warning will be flagged.poses(Array[MetaHumanIdentityPose]): [Read-Only] An array of poses that will be used to fit the conformal mesh to the input data. See UMetaHumanIdentityPoserig_component(SkeletalMeshComponent): [Read-Only] The result of the auto-rigging process. This is the conformal mesh with a proper rig able to control the faceshould_update_rig_component(bool): [Read-Only]skip_diagnostics(bool): [Read-Write] Flag indicating whether processing diagnostics should be calculated during identity creationtemplate_mesh_component(MetaHumanTemplateMeshComponent): [Read-Only] The template mesh component for the face. Manages the meshes that represent each pose as well as eyes and teeth
- add_pose_of_type(pose_type, pose) None¶
Adds the given pose to this face. Does nothing if a pose of the same type already exists
- Parameters:
pose_type (IdentityPoseType)
pose (MetaHumanIdentityPose)
- conform(conform_type=ConformType.SOLVE) IdentityErrorCode¶
MetaHuman Identity solve
- Parameters:
conform_type (ConformType)
- Return type:
- property dna_pivot: Vector¶
[Read-Write] Holds the DNA Pivot as returned from the autorigging service deprecated: The new autorigging service doesn’t provide DNA Pivot
- Type:
(Vector)
- property dna_scale: float¶
[Read-Write] Holds the DNA Scale as returned from the autorigging service deprecated: The new autorigging service doesn’t provide DNATo Scale
- Type:
(float)
- property dna_to_scan_transform: Transform¶
[Read-Write] Holds the DNAToScan transform as returned from the autorigging service deprecated: The new autorigging service doesn’t provide DNAToScan transform matrix
- Type:
- find_pose_by_type(pose_type) MetaHumanIdentityPose¶
Finds a Pose of given type. Returns nullptr if one is not found.
- Parameters:
pose_type (IdentityPoseType)
- Return type:
- get_poses() Array[MetaHumanIdentityPose]¶
Get Poses
- Return type:
- is_conformal_rig_valid() bool¶
Returns true if the conformal rig component is valid and points to a valid skeletal mesh
- Return type:
- remove_pose(pose) bool¶
Remove Pose
- Parameters:
pose (MetaHumanIdentityPose)
- Return type: