当我们需要把Maya场景保存为ma格式的时候,如果maya自带的优化场景无效,可以尝试以下mel代码来清除。(When we need to save the Maya scene in ma format, if the optimized scene that comes with Maya is invalid, you can try the following mel code to clear it.)
{
string $unknownNodes[] = `lsType unknown`;
for($node in $unknownNodes){
if($node=="<done>")
break;
if(`objExists $node`)
{
int $lockState[] = `lockNode -q -l $node`;
if($lockState[0]==1)
lockNode -l off $node;
delete $node;
}
}
}
论坛作者链接:https://autodeskfeedback.az1.qualtrics.com/jfe/form/SV_1yNWNw40yATej3g