ViewProjection

Returns or sets a view's projection mode.  A view's projection mode can be either parallel or perspective.

Syntax

rhinoscriptsyntax.ViewProjection (view=None, mode=None)

rhinoscript.view.ViewProjection (view=None, mode=None)

Parameters

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:

Value

Description

1

Parallel

2

Perspective

Returns

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.

Example

import rhinoscriptsyntax as rs

views = rs.ViewNames()

if views:

    for view in views: rs.ViewProjection(view,1)

Also See

IsViewPerspective