A script for changing viewport


#1

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


Creating Aliases aka shortcuts
(Willem Derks) #2

Hi Cosmas,

How about the command NextViewport dies that what you want?

-Willem


#3

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


(Wim Dekeyser) #4

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


#5

Thank you, guys. This is perfect.