IsViewPerspective

Verifies that the specified view's projection is set to perspective.

Syntax

rhinoscriptsyntax.IsViewPerspective (view)

rhinoscript.view.IsViewPerspective (view)

Parameters

view

Optional.  String or Guid.  The title or identifier of the view.  If omitted, the current active view is used.

Returns

Boolean

True or False indicating success or failure.

Example

import rhinoscriptsyntax as rs

title = rs.CurrentView()

result = rs.IsViewPerspective(title)

if result:

    print "The " + title + " view is set to perspective projection."

else:

    print "The " + title + " view is set to parallel projection."

Also See

ViewProjection