Returns or sets the specified view's construction plane.
rhinoscriptsyntax.ViewCPlane (view=None, plane=None)
rhinoscript.view.ViewCPlane (view=None, plane=None)
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the current active view is used. |
plane |
Optional. The new construction plane. |
Plane |
If a construction plane is not specified, the current construction plane if successful. |
Plane |
If a construction plane is specified, the previous construction plane if successful. |
import rhinoscriptsyntax as rs
origin = rs.GetPoint("CPlane origin")
if origin:
plane = rs.ViewCPlane()
plane = rs.MovePlane(plane,origin)
rs.ViewCPlane(None, plane)