Description | Example | Return message | Group

VO_R CameraControl

Return information about camera paths in a scenario.

Syntax

VO_R <ScenarioPath> CameraControl {CameraOptions}

Related commands

Description

The VO_R CameraControl command will return the names of all camera paths in the scenario as well as additional information associated with individual paths and keyframes.

The {CameraOptions} values are described in the following table.

{CameraOptions}Description
GetPaths [WindowID <WinNumber>]Return the names of all camera paths in the scenario.
GetFollowedPath [WindowID <WinNumber>]Return the followed path. If there is no active path, then "" will be returned.
GetReferenceAxes "<PathName>"Return the reference axes for the specified camera path.
GetKeyframeData "<PathName>" {KeyframeOptions}Return information about keyframes for the specified camera path. The following table describes the {KeyframeOptions}

The following table describes the {KeyframeOptions} to be used with the GetKeyframeData option.

{KeyframeOptions}Description
KeyframeNum {<Number> | All}Return data for the specified keyframe. Enter All to return data for all keyframes, this is the default.
Data {Time | Position | OrientationQuat | OrientationYPR}Enter the type of data to be returned. This option can be entered multiple times on the command line.

Time is returned in Connect Date units.

Position returns x y z in meters,

OrientationQuat returns the four quaternion values.

OrientationYpr returns yaw pitch roll in degrees.

Examples

To return the list of camera paths in the current scenario:

VO_R * CameraControl GetPaths

Return message

Returns "<PathName>"...
"Path0" "Path1" "Path2" "Path with spaces"

Examples

To return the reference axes for Path2:

VO_R * CameraControl GetReferenceAxes "Path2"

Return message

Earth Inertial Axes

Examples

To return the time and position for keyframe 2 of Path2:

VO_R * CameraControl GetKeyframeData "Path2" Data Time Data Position KeyframeNum 2

Return message

"1 Mar 2010 16:01:00.00" 3231103.221243 34930632.387514 0.000000

Group membership

This command belongs to the following group(s):

VO

VO Window

Version

9.2.1