Hello,
I am trying to add neutral pose to MetaHuman Identity face part with Python.
Problem is that created pose is transient object which cannot be used. For example adding capture data to transient pose crashes UE instantly.
Below is the example code which I used to add pose to the MetaHumanIdentityFace part
# Create identity asset
identityAsset = unreal.AssetTools.create_asset(asset_tools, asset_name = ‘MH_Identity’, package_path = ‘/Game/’, asset_class = unreal.MetaHumanIdentity, factory = unreal.MetaHumanIdentityFactoryNew())
# Create face part
partFace = identityAsset.get_or_create_part_of_class(part_class = unreal.MetaHumanIdentityFace)
# Initialize face part
partFace.initialize()
# Add neutral pose to face part
partFace.add_pose_of_type(pose_type = unreal.IdentityPoseType.NEUTRAL, pose = unreal.MetaHumanIdentityPose())
Thank you.