26 lines
816 B
Plaintext
26 lines
816 B
Plaintext
|
//******************************************************************************
|
|||
|
//
|
|||
|
// <20><>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>: <20><>Ϫʱ<CFAA><CAB1><EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD><EFBFBD>˾
|
|||
|
// <20><>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD>: q.100@qq.com
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 2023/08/08
|
|||
|
//
|
|||
|
//******************************************************************************
|
|||
|
|
|||
|
global proc SGRenameBlendShapes (){
|
|||
|
for($j = 0; $j < 50; $j++ ){
|
|||
|
string $meshe = `SGGetMeshes -i $j`;
|
|||
|
string $blendShape = ($meshe + "_blendShapes");
|
|||
|
if(`objExists $blendShape`){
|
|||
|
string $attrWeight = $blendShape + ".weight";
|
|||
|
string $currentBlendShapeList[] = `listAttr -m $attrWeight`;
|
|||
|
for($i = 0; $i < size($currentBlendShapeList); $i++ ){
|
|||
|
string $bsName = $currentBlendShapeList[$i];
|
|||
|
if(!`gmatch $bsName ($meshe + "__*")`){
|
|||
|
catchQuiet (`aliasAttr ($meshe + "__" + $bsName) ($blendShape + ".w[" + $i + "]")`);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|