background_type#

viewport.background_type(p0: str) int#

Specify the type of background to be displayed for the selected viewport(s).

Args:
p0:

‘type’

  • the following types are applied to the selected viewports

  • blended

  • constant

  • inherit

  • image

  • transparent

Examples:
ensight.viewport.select_begin(0)
ensight.viewport.background_type("blended")
ensight.viewport.blend_levels(3)
ensight.viewport.blend_editlevel(1)
ensight.viewport.blend_rgb(1.0000e+00,1.0000e+00,1.0000e+00)
ensight.viewport.blend_editlevel(2)
ensight.viewport.blend_rgb(0.0000e+00,0.0000e+00,1.0000e+00)
ensight.viewport.blend_editlevel(3)
ensight.viewport.blend_position(3.2000e-01)
ensight.viewport.blend_rgb(0.0000e+00,0.0000e+00,0.0000e+00)
ensight.viewport.select_begin(1)
ensight.viewport.background_type("inherit")
ensight.viewport.select_begin(2)
ensight.viewport.background_type("constant")
ensight.viewport.constant_rgb(0.0000e+00,0.0000e+00,0.0000e+00)
Returns:

zero on success, non-zero on error