Returns or sets the 35mm camera lens length of the specified perspective projection view.
rhinoscriptsyntax.ViewCameraLens ( view=None, length=None )
rhinoscript.view.ViewCameraLens ( view=None, length=None )
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. |
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. |
import rhinoscriptsyntax as rs
view = rs.CurrentView()
if rs.IsViewPerspective(view):
length = rs.ViewCameraLens(view, 100)