MetaFusion/Reference/SuperRiggingEditor/scripts/SGDeleteJointForLOD.mel

23 lines
560 B
Plaintext
Raw Normal View History

2025-02-03 22:58:41 +08:00
//******************************************************************************
//
// <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/02/23
//
//******************************************************************************
global proc SGDeleteJointForLOD(int $lod){
string $joint_all[] = `SGGetJoints -lod 0 "string"`;
string $joint_lod[] = `SGGetJoints -lod $lod "string"`;
string $joint_del[] = stringArrayRemove($joint_lod, $joint_all);
for($joint in $joint_del){
if(`objExists $joint`){
delete $joint;
}
}
}