Verifies that the specified view is the current, or active, view.
rhinoscriptsyntax.IsViewCurrent (view)
rhinoscript.view.IsViewCurrent (view)
view |
Required. String or Guid. The title or identifier of the view. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
title = "Perspective"
result = rs.IsViewCurrent(title)
if result:
print "The " + title + " view is current."
else:
print "The " + title + " view is not current."