Hotkeys - Window Specific - Select Camera & Hypershade


#1

Hi, this mel worked fine in 2015 for selecting the camera in a view. However, in 2016 it does not work in the Hypershade window. Anyone know why or the equivalent mel that works in any window in 2016?

postModelEditorSelectCamera modelPanel4 modelPanel4 0;
openAEWindow;

Likewise this Hotkey mel works in all windows except the Outliner (was fine in 2015):

openAEWindow;
ShowShadingGroupAttributeEditor;
setNamedPanelLayout “Hypershade/Render/Persp”;
setNamedPanelLayout “Hypershade/Render/Persp”;
hyperShadePanelMenuCommand(“hyperShadePanel1”, “mediumIcons”);
hyperShadePanelMenuCommand(“hyperShadePanel1”, “showTopAndBottomTabs”);
hyperShadePanelGraphCommand(“hyperShadePanel1”, “graphMaterials”);
hyperShadePanelMenuCommand(“hyperShadePanel1”, “frameSelected”);

Cheers,
Lee