Continuing my MEL adventures in Maya I’m learning how to create UIs at the moment and I’ve run into a small issue I can’t figure out. I’ve looked at some free character rigs online and their GUIs have the same issue so it seems to be a common one, but must be fixable I reckon.
Basically - if I enter the following code to create a tabbed window, even though I just want to create 2 tabs in this example, I always get an extra one right in front. So each time an animator would open this they have to switch to the correct ‘1st’ tab. Not life-threatening, but a little annoying and I’m sure there must be a way to prevent it.
Any ideas appreciated.
window -t "Tab Window" -w 240 -h 430 ; string $tabs = `tabLayout -innerMarginWidth 5 -innerMarginHeight 5 -scr 1 -hst 16 -vst 16 -cr 1 `; string $tab1 = `columnLayout -adj 1`; setParent..; setParent..; string $tab2 = `columnLayout -adj 1`; setParent..; setParent..; tabLayout -edit -tabLabel $tab1 "Animation" -tabLabel $tab2 "Rendering" $tabs; showWindow;