view_mode_allowed#

prefs.view_mode_allowed(p0: str) int#

Will display View as one of the modes along the left side of the EnSight main interface.

View Mode is used to adjust the appearance of Parts in the Graphics Window (Perspective, Static Color, etc.), the visibility and appearance of Labels, to adjust Auxiliary Clipping status, and to toggle visibility of the Global Axis triad. By default, this mode is not available because the attributes are available under the View menu of the main interface.
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.prefs.view_mode_allowed("ON")
Returns:

zero on success, non-zero on error