21 lines
517 B
Plaintext
21 lines
517 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>: 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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|