ue 操作 metahuman

操作张嘴:

python 复制代码
import unreal

ACTOR_NAME = "BP_Bernice_C_UAID_24B2B9B96FE856AF02_1876048431"

subsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
actors = subsystem.get_all_level_actors()

actor = None
for a in actors:
    if a.get_name() == ACTOR_NAME:
        actor = a
        break

if not actor:
    unreal.log_error("Actor not found")
    raise SystemExit

# MetaHuman 的脸一般在 Face SkeletalMeshComponent 上
face_mesh = None
for comp in actor.get_components_by_class(unreal.SkeletalMeshComponent):
    if "Face" in comp.get_name():
        unreal.log("find face")
        face_mesh = comp
        break

if not face_mesh:
    unreal.log_error("Face SkeletalMeshComponent not found")
    raise SystemExit

# 张嘴
face_mesh.set_morph_target("jawOpen", 1.0)

unreal.log("MetaHuman mouth opened")
相关推荐
远离UE42 天前
UE5 UV邻接 Niagara潜水模拟 学习笔记
ue5·uv
AA陈超2 天前
005 T03 — 角色基类与移动系统 详细功能设计文档
ue5
AA陈超2 天前
004 T02 - 俯视角摄像机系统 设计文档
网络·c++·ue5·虚幻引擎
AA陈超3 天前
006 T03 — 蓝图操作指南
c++·游戏·架构·ue5·github·虚幻引擎
Duo1J5 天前
【UE】Slate 编辑器工具开发01 - Slate语法 & 常用控件
ue5·编辑器·游戏引擎·ue4
朗迹 - 张伟5 天前
UE5.7 PCG从入门到精通系列课程【第五课:PCG沿一条样条线生成物体】
ue5·pcg
AA陈超5 天前
003 XiYou 西游 — P0 阶段实施计划
c++·笔记·学习·ue5
朗迹 - 张伟7 天前
UE5.7 PCG从入门到精通系列课程【第三课:程序化生成森林】
ue5·pcg
朗迹 - 张伟7 天前
UE5.7 PCG从入门到精通系列课程【第二课:使用PCG制作草地系统】
ue5·pcg
im长街8 天前
UE 课程介绍 - 1. 3DMax软件建模基础
ue5·3dsmax