Maya批量删除namespace
该脚本可以一键删除所有namespace,解决了无法批量删除的问题
string $getAllNS[] = `namespaceInfo -recurse -listOnlyNamespaces`;
for($oneNS = size($getAllNS)-1;$oneNS >= 0;$oneNS--){
if($getAllNS[$oneNS] != "UI" && $getAllNS[$oneNS] != "shared"){
namespace -mergeNamespaceWithParent -removeNamespace $getAllNS[$oneNS];
}
else{
continue;
}
}