MetaFusion/Reference/SuperRiggingEditor/scripts/SGClothingWeight.mel

25 lines
668 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>: 2023/10/31
//
//******************************************************************************
global proc SGClothingWeight (){
string $sel[] = `ls -sl`;
string $hesd = `SGGetMeshes -m 0`;
string $body = `SGGetMeshes -m 50`;
select -cl;
select -add $body;
select -add $sel;
SGCopySkin;
for ($i=0;$i<size($sel);$i++){
select -cl;
select -add $hesd;
select -add $body;
select -add $sel[$i];
copySkinWeights -noMirror -surfaceAssociation closestPoint -influenceAssociation closestJoint;
}
}