MetaFusion/Reference/SuperRiggingEditor/scripts/SGUnbindSkinCluster.mel
2025-02-03 22:58:41 +08:00

21 lines
517 B
Plaintext

//******************************************************************************
//
// 版权所有: 玉溪时光科技有限公司
// 联系邮箱: q.100@qq.com
// 开发日期: 2023/08/08
//
//******************************************************************************
global proc SGUnbindSkinCluster (){
for($i=0; $i<54; $i++){
string $mesh = `SGGetMeshes -m $i`;
if(`objExists $mesh`){
string $skinCluster = `findRelatedSkinCluster $mesh`;
if(`objExists $skinCluster`)
{
skinCluster -e -ub $mesh;
}
}
}
}