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")
相关推荐
四代水门16 天前
UE5实现客户端与服务器时间同步
ue5
智海深蓝17 天前
海上平行战场:态势模拟三维可视化平台
3d·ue5
_守一18 天前
UE5 ListView记录
ue5
成都渲染101云渲染666619 天前
CR15新功能介绍以及CR15云渲染流程
ue5·图形渲染·blender·maya·corona
一锅炖出任易仙20 天前
创梦汤锅学习日记day30
学习·ai·ue5·游戏引擎
OSwich20 天前
【UE5学习笔记】UMG中控件命名规范
笔记·学习·ue5
一锅炖出任易仙21 天前
创梦汤锅学习日记day29
学习·ai·ue5·游戏引擎
吴梓穆21 天前
UE5 C++ 注册 开始重叠和结束重叠事件
开发语言·c++·ue5
妙为22 天前
unreal engine5(UE5)中使用Rider
ue5·游戏引擎·虚幻·rider
归真仙人23 天前
【UE】LineTraceByProfile
ue5·游戏引擎·ue4·unreal engine