roll.setCurrent()

Description

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

Syntax

DCSObject.camera.roll.setCurrent(roll);

Parameters

<long> roll: Specifies the camera’s roll setting, in degrees. Values range from –180 to +180, or a subset thereof, with the default being set to zero. Positive values cause a clockwise rotation of the camera along the image viewing axis, and negative values cause a counterclockwise rotation of the camera.

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.roll.setCurrent(10);  // Specifies the camera’s roll setting for the current camera.
      

See also

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

Is this page helpful?

Leave a Reply

Your email address will not be published.