MetaFusion/Reference/SuperRiggingEditor/scripts/SGCurrentProjectDNA.mel

24 lines
613 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/03/04
//
//******************************************************************************
global proc SGCurrentProjectDNA() {
string $rl4[] = `ls -type "embeddedNodeRL4"`;
if(!`size($rl4)`){
error -n "No RL4 node object...";
return;
}
string $prePath = `SGDescriptor -gpd`;
for($r in $rl4){
string $rl4Path = `getAttr ($r + ".dnaFilePath")`;
if(`file -q -ex $rl4Path` && $rl4Path != $prePath){
SGDescriptor -spd $rl4Path;
}
}
}