Returns or sets a view's projection mode. A view's projection mode can be either parallel or perspective.
rhinoscriptsyntax.ViewProjection (view=None, mode=None)
rhinoscript.view.ViewProjection (view=None, mode=None)
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the current active view is used. |
||||||
mode |
Optional. Number. The projection mode. The projection modes are as follows:
|
Number |
If mode is not specified, the current projection mode for the specified view if successful. |
Number |
If mode is specified, the previous projection mode for the specified view if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
views = rs.ViewNames()
if views:
for view in views: rs.ViewProjection(view,1)