ViewCameraUp

Returns or sets the camera up direction of a specified view.

Syntax

rhinoscriptsyntax.ViewCameraUp ( view=None, up_vector=None )

rhinoscript.view.ViewCameraUp ( view=None, up_vector=None )

Parameters

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.

Returns

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.

Example

import rhinoscriptsyntax as rs

view = rs.CurrentView()

upVector = rs.ViewCameraUp(view)

print up_vector

Also See

ViewCamera

ViewTarget