Maya Mel 窗口显示

一小段Mel

if (`window -exists $w`){
    deleteUI -window $w;
}
string $w = `window -title "哈哈" -wh 480 320 my`;
rowColumnLayout  -numberOfColumns 2  -columnWidth 1 30;

button -l "OK" -c "keyTx()";
text -l "  TranslateX";

button -l "OK";
text -l "  TranslateY";

button -l "OK";
text -l "  TranslateZ";

showWindow;

proc keyTx(){
    string $sl[] = `ls -sl`;
    for($s in $sl){
        setKeyframe -at "translateX";
    }
}

Maya Mel 窗口显示_第1张图片

你可能感兴趣的:(Maya Mel 窗口显示)