25 lines
668 B
Plaintext
25 lines
668 B
Plaintext
//******************************************************************************
|
|
//
|
|
// 版权所有: 玉溪时光科技有限公司
|
|
// 联系邮箱: q.100@qq.com
|
|
// 开发日期: 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;
|
|
}
|
|
}
|