Minimize / hide all viewports with MEL


#1

Hi guys,

I’m trying to hide and unhide viewports with MEL. For example: I have 1 perspective view and 1 orthographic, I would like to hide them (or simply just replace with a blank window) and after that restore them so that user can see them exactly as they were before runing the script.

If user has 4 or more viewports open, I will need to locate them all and hide them (or replace with blank windows)…

Do you guys have any pointers on how could I achieve that? I’ve been trying to look for solutions, but I’m running out of ideas…

~CakeKid