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

21 lines
517 B
Plaintext

//******************************************************************************
//
// 版权所有: 玉溪时光科技有限公司
// 联系邮箱: q.100@qq.com
// 开发日期: 2024/03/20
//
//******************************************************************************
global proc SGStandardizedNaming ()
{
string $meshes[] = `SGGetMeshes`;
for($i=0; $i<size($meshes); $i++){
string $mesh = `SGGetMeshes -m $i`;
if(`objExists $mesh`){
string $newName = `rename $mesh $meshes[$i]`;
SGSetMeshes -m $i $newName;
}
}
}