Hello.
This works fine in Maya 2015 and looking in the help files, there seems nothing has changed, but I can’t get the following to work.
//Outliner Toggle
//===============================================
global proc outlinerToggle(){
//If window doesn't exist, create it
if (!`window -q -ex outlinerPanel1Window`)
{
OutlinerWindow;
}
//If it does exist, toggle to minimize it or toggle to show it
else if (`window -q -ex outlinerPanel1Window` == 1){
if (`window -q -i outlinerPanel1Window` == 1)
{
window -edit -i 0 outlinerPanel1Window;
}
else if (!`window -q -i outlinerPanel1Window`)
{
window -edit -i 1 outlinerPanel1Window;
}
}
}
$hotKey = `nameCommand
-annotation "Outliner"
-command "outlinerToggle"`;
hotkey -alt -k "2" -name $hotKey;