perspective#

viewport.perspective(p0: str) int#

Toggle whether viewing frustrum is to be perspective or orthographic in selected viewport(s).

Geometry will be shown with perspective if:
(a) view: perspective ON
(b) viewport: perspective ON
Args:
p0:

‘toggle’

  • one of following toggle values:

  • ON

  • OFF

Examples:
ensight.viewport.select_begin(0)
ensight.viewport.perspective("OFF")
ensight.viewport.select_begin(1)
ensight.viewport.perspective("ON")
Returns:

zero on success, non-zero on error