Verifies that the specified view's projection is set to perspective.
rhinoscriptsyntax.IsViewPerspective (view)
rhinoscript.view.IsViewPerspective (view)
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the current active view is used. |
Boolean |
True or False indicating success or failure. |
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."