#!/usr/bin/env python # -*- coding: utf-8 -*- """ 版权所有: 清泉时代科技有限公司 联系方式: q.100@qq.com 创建日期: 2023/08/08 """ import maya.cmds as cmds def sg_edit_blend_shape(index, blend_shape): """ 编辑混合变形目标 参数: index (int): 目标索引 blend_shape (str): 混合变形节点名称 """ try: # 重置当前雕刻目标 cmds.sculptTarget(blend_shape, edit=True, target=-1) # 设置新的雕刻目标 cmds.sculptTarget(blend_shape, edit=True, target=index) except: pass