MetaFusion/scripts/utils/GetBlendShape.py
2025-02-07 05:10:30 +08:00

23 lines
509 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import maya.cmds as cmds
from Core import GetBlendShape
def get_blend_shape_command(mesh):
"""
获取指定网格的混合变形节点
参数:
mesh (str): 网格名称
返回:
str: 混合变形节点名称,如果没有找到则返回空字符串
"""
# 获取网格的历史记录
blend_shape_node = GetBlendShape(mesh)
if blend_shape_node:
return blend_shape_node
else:
return ""