Command for selecting a specific viewport?

Hello,

I am currently trying to write a few macros. I wish a command to select the Top viewport.
What command can we use?
Where can we find the documentation of the commands so I don’t ask in the forum?

Hi Alan,

_SetActiveViewport Top should do it.

https://docs.mcneel.com/rhino/6/help/en-us/index.htm#commands/setactiveviewport.htm?Highlight=setactiveviewport

In general usually you can start typing what you think the command could be and look at the fuzzy autocomplete list. That’s how I found this one - never actually used this as a command, always switching with mouse…

hth,

–jarek