ViewCameraLens

Returns or sets the 35mm camera lens length of the specified perspective projection view.

Syntax

rhinoscriptsyntax.ViewCameraLens ( view=None, length=None )

rhinoscript.view.ViewCameraLens ( view=None, length=None )

Parameters

view

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

length

Optional.  Number.  The new 35mm camera lens length.  If omitted, the previous 35mm camera lens length is returned.

Returns

Number

If a lens length is not specified, the current lens length if successful.

Number

If a lens length is specified, the previous lens length is successful.

Example

import rhinoscriptsyntax as rs

view = rs.CurrentView()

if rs.IsViewPerspective(view):

    length = rs.ViewCameraLens(view, 100)

Also See

ViewCameraTarget

ViewCPlane

ViewDisplayModes

ViewProjection

ViewSize