Moves the origin of a plane.
rhinoscriptsyntax.MovePlane (plane, origin)
rhinoscript.plane.MovePlane (plane, origin)
plane |
Required. Plane |
origin |
Required. List of 3 numbers or Point3d. A 3-D point identifying the new origin location. |
Plane |
The plane if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
origin = rs.GetPoint("CPlane origin")
if origin:
plane = rs.ViewCPlane()
plane = rs.MovePlane(plane,origin)
rs.ViewCplane(plane)