poI3DViewCtrl GetLookAt

Gets nine points which represent the lookat matrix.

Syntax

poI3DViewCtrl_handle GetLookAt name

Application

HyperView Tcl Query

Description

This command retrieves nine float numbers. The first three numbers represent the position of the camera (eye). The next three numbers represent the position that the camera is looking at (center). The last three numbers represent the orientation of the camera (up).

Inputs

name
If specified, the lookat of the view with that name will be returned. Otherwise, the current view’s lookat will be returned.

Example

Get the lookat of a view named “View 1”:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetViewControlHandle view_handle
view_handle GetLookAt “View 1”
hwi CloseStack

Error

Returns HW_InvalidHandle if the view handle is invalid.