23 lines
685 B
Plaintext
23 lines
685 B
Plaintext
//******************************************************************************
|
|
//
|
|
// 版权所有: 玉溪时光科技有限公司
|
|
// 联系邮箱: q.100@qq.com
|
|
// 开发日期: 2023/08/08
|
|
//
|
|
//******************************************************************************
|
|
|
|
global proc SGExportSkinCluster (){
|
|
string $directory[] = `fileDialog2 -fileMode 2 -dialogStyle 1`;
|
|
if(`file -q -ex $directory[0]`){
|
|
string $sel[] = `ls -sl`;
|
|
string $suffix = ".skin";
|
|
for ($i=0;$i<size($sel);$i++){
|
|
string $skinCluster = `findRelatedSkinCluster $sel[$i]`;
|
|
if(`objExists $skinCluster`){
|
|
string $path = $directory[0] + "/" + $sel[$i] + $suffix;
|
|
SGSkinCluster -ef $sel[$i] $path;
|
|
}
|
|
}
|
|
}
|
|
}
|