2013-05-29 24 views

回答

1

這是一種做法。這proc已經在Maya 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; 
    } 
} 

編輯:更新腳本包含標籤佈局的全局名稱

相關問題