User Tools

Site Tools


setcamerasetting

SetCameraSetting

The SetCameraSetting function sets a setting value for a given setting for the given camera. If no camera name is given, then the first connected camera is taken.

Parameters

  • settingName: The setting name.
  • settingValue: The setting value.
  • cameraName: The camera name of the camera on which the function should be executed. If left empty, then the first connected camera is taken.
  • waitUntilFinished: If true then the function blocks until the camera returns the function result. If false, then the function immediately returns.

Syntax

bool: SetCameraSetting(string settingName, var settingValue[, string cameraName="", bool waitUntilFinished=true])

Examples

var result = SetCameraSetting("ExposureCompensation", "-2.0 EV", "GoPro Hero 4");
// Sets the exposure compensation value for the GoPro Hero 4 camera to -2.0 EV.
// False is returned if the camera is not connected or if the given setting is not
// supported by the camera.
setcamerasetting.txt · Last modified: 2016/09/06 07:01 by act