Maya前臺渲染-可按ESC取消

int $min = `playbackOptions -q -min`;
int $max = `playbackOptions -q -max`;
 
progressWindow
    -title "F Batch Rendring"
    -progress 0
    -status "Rendering: 0%"
    -isInterruptable true;
 
for($i=$min; $i <= $max; $i++) 
{
    // Check if the dialog has been cancelled
    if ( `progressWindow -query -isCancelled` ) break;
    currentTime $i;
    RenderIntoNewWindow;
    progressWindow -edit -progress $i -status ("Rendering: "+$i+"%");
}
 
progressWindow -endProgress;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章