Returns or sets the radius of the viewing frustum of a parallel-projected view. This function is useful when you need an absolute zoom factor for a parallel-projected view.
rhinoscriptsyntax.ViewRadius (view=None, radius=None)
rhinoscript.view.ViewRadius (view=None, radius=None)
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the current active view is used. |
radius |
Optional. Number. The view radius. |
Number |
If radius is not specified, the current view radius for the specified view if successful. |
Number |
If radius is specified, the previous view radius for the specified view if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
rhParallelView = 1
views = rs.ViewNames()
if views:
for view in views:
if rs.ViewProjection(view)==rhParallelView:
rs.ViewRadius(view, 10.0)