"2 Viewports" Viewport Layout

image
Rhino toolbars have buttons for “_4View” and “_3View” commands, but there isn’t any button to set the Viewport Layout to 2 viewports. Indeed, the analogous command “_2View” doesn’t exist. I would like to add it but I find no proper script for it. I tried:
!_3View _CloseViewport
but the space left by the closed viewport is not occupied, remaining black:

I find no way to force the viewport on the right to extend to top.
Any idea?

Use the mouse.

Create the 2 Viewports, then save it. Then use below:

What you want to do is save a blank file with the viewport layout as you want. Store it somewhere known, then in any document, use the command ReadViewportsFromFile and browse to to your viewport “template”. Viewport layouts can also be stored in your templates directly, just save them with your layout as you want.

Yep. First, put a “-” dash in front of -ReadViewportsFromFile. That will bypass the dialog. Then you need to put the full file path in there enclosed in quotes. -ReadViewportsFromFile “C:\filepath\Layout-X.3dm”

–Mitch

Thanks Ftzuk, I’ll try creating a template and reading viewports from it…

I think you can also use:
Window > Window Layouts > Save Window Layout but as far as I know that saves everything - toolbar locations, viewport layouts etc.

Not sure why there’s no easy way to save a viewport layout. Seems like such a basic function.

Yes, Window Layouts are a different thing.

I used the -ReadViewportsFromFile and it’s working fine, though I find it a bit excessive to have to create an additional file for such a simple action. I’m surprised Rhino doesn’t have the 2View command. Has no one ever missed it?

Many times. I usually just need an ISO view and one other view. Have never been bothered to go through the hassle of setting it up with an external file….always end up manually creating it each time.