viewport_layout#

viewport.viewport_layout(p0: str) int#

Specify the type of layout to be used in dividing the graphics window into viewports.

When creating a layout of viewports, the active viewport defaults to the last viewport created, i.e. if creating four_equal viewports, the active viewport is the last of the four created.
Args:
p0:

‘option’

  • includes the following types of viewport layouts:

  • one

  • two_vertical

  • two_horizontal

  • four_equal

  • four_withthreeleft

  • four_withthreebottom

Examples:
ensight.viewport.select_begin(0)
ensight.view_transf.function("global")
ensight.viewport.viewport_layout("two_vertical")
ensight.viewport.select_begin(1)
Returns:

zero on success, non-zero on error