Returns or sets the camera location of the specified view.
rhinoscriptsyntax.ViewCamera ( view=None, camera_location=None)
rhinoscript.view.ViewCamera ( view=None, camera_location=None)
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the current active view is used. |
camera_location |
Optional. Array or Point3d. A 3-D point identifying the new camera location. If camera_location is not specified, the current camera location is returned. |
Point3d |
If camera_location is not specified, then a 3-D point containing the current camera location if successful. |
Point3d |
If camera_location is specified, then a 3-D point containing the previous camera location if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
view = rs.CurrentView()
camera = rs.GetPoint("Select new camera location")
if camera: rs.ViewCamera(view,camera)