Maximizing a Panel in 4.0

 From:  Berube
9627.1 
Hello everyone.

I hope you're all doing well at work and such.

I use to have this great "Shortcut" in MOI 3.0 which would maximize (Full Screen) a panel in and out.

script: /* Maximize View */ if ( moi.ui.mainWindow.viewpanel.mode != 'split' ) { moi.ui.mainWindow.viewpanel.mode = 'split' } else { var viewport = moi.ui.getViewportUnderMouse(); if ( viewport ) viewport.viewpanel.mode = viewport.name; }

It seems the syntax no longer works in the 4.0 Beta release.

Anyone able to point me down the right direction?

Thanks a lot.

-Berube