view_dimension#
- viewport.view_dimension(p0: str) int #
Set the dimension of the viewport.
Dimension 2D is handy for displaying 2D clips and/or developed surfaces.A 2D viewport can only be transformed in 2D.- Args:
- p0:
‘option’
includes the following viewport dimensions:
3D (default)
2D
- Examples:
ensight.viewport.select_begin(0,1) ensight.viewport.view_dimension("3D") ensight.viewport.select_begin(2) ensight.viewport.view_dimension("2D")
- Returns:
zero on success, non-zero on error