ViewTarget

Returns or sets the target location of the specified view.

Syntax

rhinoscriptsyntax.ViewTarget (view=None, target=None)

rhinoscript.view.ViewTarget (view=None, target=None)

Parameters

view

Optional.  String or Guid.  The title or identifier of the view.  If omitted, the current active view is used.

target

Optional.  Array or Point3d.  A 3-D point identifying the new target location.  If target is not specified, the current target location is returned.

Returns

Point3d

If target is not specified,  then a 3-D point containing the current target location if successful.

Point3d

If target is specified,  then a 3-D point containing the previous target location if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

view = rs.CurrentView()

target = rs.GetPoint("Select new target location")

if target: rs.ViewTarget( view, target )

Also See

ViewCamera

ViewCameraTarget