perspective#

view.perspective(p0: str) int#

Toggles global perspective rendering.

Perspective rendering causes things further in distance to appear smaller than closer objects. If this setting is off then objects will be rendered in orthographic mode which does not use perspective foreshortening.
Each viewport has a local setting. See viewport: perspective
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.view.perspective("ON")
Returns:

zero on success, non-zero on error