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.

Cosmas

Hi Cosmas,

How about the command NextViewport dies that what you want?

-Willem

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).

–Mitch

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

1 Like

Thank you, guys. This is perfect.