"group1"という名前の直下にあるオブジェクトを分離し、その後に名前を変更するMEL。
肌と舌が結合されているシーンで使用したもの。
string $blendShapeTargetList[] = `listRelatives -pa -c "group1"`;
for($node in $blendShapeTargetList)
{
select -r $node;
showHidden -a;
polySeparate -ch 0;
string $children[] = `listRelatives -c $node`;
string $shortName[] = `ls -sn $node`;
rename $children[0] ($shortName[0]+"_skin");
rename $children[1] ($shortName[0]+"_tongue");
}
自分用メモ