2013-05-29 2 views

답변

1

여기 한 가지 방법이 있습니다. 이 PROC 마야 2009 년에 시험을 할 때, 2013 년은

// switch the tab by name string, note tab must be present 

global proc switchAEtoTab(string $name){ 
    global string $gAETabLayoutName; 
    string $tabs[] = `tabLayout -q -tabLabelIndex $gAETabLayoutName`; 
    for ($i=0;$i<size($tabs);$i++){ 
     if ($tabs[$i]==$name) 
      tabLayout -e -selectTabIndex ($i+1) $gAETabLayoutName; 
    } 
} 

편집 : 업데이트 스크립트 탭 레이아웃의 글로벌 이름을 포함하는

관련 문제