viewports#

case.viewports(p0: str) int#

Specify which viewport in which to display the data from a case.

The active case is modified (see “case: select”).
Args:
p0:

‘vp#’ viewport integer # in I[1,N] which correspond to the respective viewports in which case data is to be displayed. N is the number of active viewports.

Examples:
#
# Preliminary setup (for reference) - given two viewports
#
ensight.viewport.select_begin(0)
ensight.view_transf.function("global")
ensight.viewport.viewport_layout("two_horizontal")
ensight.viewport.select_begin(1)
#
# Displaying a case in both viewports
#
ensight.case.viewports("1 2")
#
# Displaying a case in only the first viewport
ensight.case.viewports("case  1")
Returns:

zero on success, non-zero on error