28 lines
722 B
Plaintext
28 lines
722 B
Plaintext
//******************************************************************************
|
|
//
|
|
// 版权所有: 玉溪时光科技有限公司
|
|
// 联系邮箱: q.100@qq.com
|
|
// 开发日期: 2024/03/26
|
|
//
|
|
//******************************************************************************
|
|
|
|
global proc SGFastUnbindSkinCluster (){
|
|
for($i=0; $i<54; $i++){
|
|
string $mesh = `SGGetMeshes -m $i`;
|
|
if(`objExists $mesh`){
|
|
string $skinCluster = `findRelatedSkinCluster $mesh`;
|
|
if(`objExists $skinCluster`){
|
|
string $path = `SGDescriptor -p` + "/skin_buffer/";
|
|
string $skinFile = $path + $mesh + ".skin";
|
|
if(!`file -q -ex $path`){
|
|
sysFile -md $path;
|
|
}
|
|
SGSkinCluster -ef $mesh $skinFile;
|
|
skinCluster -e -ub $mesh;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|