CGらぼ

広く浅くCGを勉強していきます。

melで選択ポリゴンのみ表示できるようにしてみた!!

ウィンドウも作成したのでクリック一つで表示が可能

※現状“Hide”は機能しません。。。

window -width 150 -title "PolygonIsolate";
columnLayout -adjustableColumn true;
    button -label "Show" -command "SelectShow";
    button -label "Hide" -command "SelectHide"  -align "left";
    button -label "ShowALL" -command "ALLShow"  -align "center";
showWindow;

global proc SelectShow()
{
    enableIsolateSelect modelPanel4 true;
    isolateSelect -state 1 modelPanel4;
    select -cl;
}

global proc ALLShow()
{
    enableIsolateSelect modelPanel4 false;
    select -cl;

 

選択ポリゴンだけを非表示にしたいんだけどうまくいかない。。。

 global proc SelectHide()
{
    $objects = polyListComponentConversion -ff;
    select -tgl $objects.f["*"];
    enableIsolateSelect modelPanel4 true;
    select -cl;
}

 

解決策がわからない ・゜゜・(/□\*)・゜゜・わ~ん

どなたか教えてください