pan.setCurrent()

Description

Specifies the camera's pan setting for the current camera.

Syntax

DCSObject.camera.pan.setCurrent(pan);

Parameters

<long> pan: Specifies the camera’s pan setting, in degrees. Values range from –180 to +180, or a subset thereof, with the default set to zero. Positive values are clockwise from the origin (the camera rotates clockwise when viewed from above), and negative values are counterclockwise from the origin.

Return value

bool

true indicates success. false indicates failure.

Remarks

The method should be called after camera.selectCamera(). If there is only one data source available, it will be selected automatically.

Example

             DCSObject.camera.selectCamera("Integrated Camera");
             DCSObject.camera.pan.setCurrent(8);  // Specifies the camera’s pan setting for the current camera.
      

See also

.camera.pan.getCurrent()
.camera.pan.getDefault()
.camera.pan.getMin()
.camera.pan.getMax()