A script for changing viewport

I am wondering if there is a script for changing viewport by switching tabs (rather than just changing the view in whatever tab you happen to be in.) I would like to do it with an alias, rather than use my mouse to take my cursor over to the tab.

I noticed that when you change viewport by clicking on the tabs, nothing appears in the command line. This leads me to believe that there is no way to do it, but I thought I would ask.

Thank you.


Hi Cosmas,

How about the command NextViewport dies that what you want?


1 Like

Well, if You’re working in one maximized viewport, the command _SetMaximizedViewport ViewName works for me. (ViewName being the name of the viewport like Top, Front, etc.)

_NextViewport will also switch to the next view in your list of views (like the equivalent of the Tab key).


Or SetActiveViewport with the name of a view put into the alias.

1 Like

Thank you, guys. This is perfect.