Description | Example | Return message | Group

VO_R ViewPoint

Return the coordinates of the current view in a given 3D window

Syntax

VO_R <ScenarioPath> ViewPoint [<WinNumber>]

Description

The VO_R ViewPoint command allows you to determine the View To and View From positions as well as the position of the Up vector in the specified 3D window. The return message includes:

  • the last animation time
  • the x, y, and z position of the ViewFrom position
  • the x, y, and z position of the ViewTo position
  • and the x, y, and z position of the UpVector

The animation time is returned in epoch seconds. The remaining values are returned in meters, in the ECI frame.

<WinNumber> is the number of the 3D window for which you wish the view pointing information. If not entered then information for the first 3D window is returned.

Examples

To find out the ViewFrom and ViewTo positions in 3D window #1:

VO_R * ViewPoint 1

Return message

Connect returns a message with the position of your view point in the specified window:
ACK
VO_R 140
13050000.000000 12439459.608165 -64104183.417819 6713410.803204 1521914.773342 -6606611.852229 -2269701.319972 0.212871 -0.924069 -0.317464

Group membership

This command belongs to the following group(s):

VO

VO Window

Version

4.1.1