MEL 5つの親子付け解除

最初に親と子を解除したいもの(ジョイント等)を選択追加して1〜5個の子を選択し
実行すると親と子を解除します。
string $H_02= `ls -sl`;
select -r $H_01[0];
Unparent;
以上の行を削除すれば親のunparentを行いません。



string $H_01= `ls -sl`;
PickWalkUp;
string $H_02[]= `ls -sl`;


select -r $H_01[0];
Unparent;

select -r $H_01[1];
Unparent;

select -r $H_01[2];
Unparent;

select -r $H_01[3];
Unparent;

select -r $H_01[4];
Unparent;

select -r $H_01[5];
Unparent;