Returns or sets the camera up direction of a specified view.
rhinoscriptsyntax.ViewCameraUp ( view=None, up_vector=None )
rhinoscript.view.ViewCameraUp ( view=None, up_vector=None )
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the current active view is used. |
up_vector |
Optional. Array or Vector3d. A 3-D vector identifying the new camera up direction. |
Vector3d |
If up_vector is not specified, then a 3-D vector identifying the current camera up direction if successful. |
Vector3d |
If up_vector is specified, then a 3-D vector identifying the previous camera up direction if successful. |
import rhinoscriptsyntax as rs
view = rs.CurrentView()
upVector = rs.ViewCameraUp(view)
print up_vector