# Get a reference to the 3D viewer pane tab desktop = hou.ui.curDesktop() viewer = desktop.paneTabOfType(hou.paneTabType.SceneViewer) # Get the current layout current_layout = viewer.viewportLayout() # Change the layout to "quad view" viewer.setViewportLayout(hou.geometryViewportLayout.)
See the viewport methods on the SceneViewer object.
Values ¶
hou.geometryViewportLayout.DoubleSide
hou.geometryViewportLayout.DoubleStack
hou.geometryViewportLayout.Quad
hou.geometryViewportLayout.QuadBottomSplit
hou.geometryViewportLayout.QuadLeftSplit
hou.geometryViewportLayout.Single
hou.geometryViewportLayout.TripleBottomSplit
hou.geometryViewportLayout.TripleLeftSplit