When i was modeling facial blendshapes i wanted a quick way to see how the shapes were working in the front and side views so i wrote a Maya hotkey to toggle between the front and side camera. Hope you find this helpful.
//toggle front and side of active panel
string $window = `getPanel -withFocus`;//example modelPanel1
if( `modelEditor -q -camera $window` == "side" ){
lookThroughModelPanel front $window;
}
else{
lookThroughModelPanel side $window;
}
cheers,
Nate
Inspired by Bryan Ewert's online tutorial on querying camera of a panel