Viewport layouts
Hello, so i'm trying to set some viewport layouts with two types of views.
The layout works well but i'm stuck at how to make sure that the upper viewport is always the camera and the bottom one the top view.
viewport.setLayout #layout_2h
viewport.setType #view_camera
viewport.setType #view_top
I guess i need to do some work with the index of both viewports but i got stuck there.
I couldn't follow so well how to acomplish that from the help section:
http://docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help/index.html?url=fil...
I'd love some help if possible :)
thank you.
Comments
.
already figured it out :)
solution:
viewport.setLayout #layout_2h
viewport.activeViewport = 1
viewport.setType #view_camera
displaySafeFrames = True
actionMan.executeAction -844228238 "13" -- Viewport Lighting and Shadows: Standard
viewport.activeViewport = 2
viewport.setType #view_top
actionMan.executeAction 0 "310" -- Tools: Zoom Extents Selected
max zoomext sel
actionMan.executeAction -844228238 "13" -- Viewport Lighting and Shadows: Standard