User Tools

Site Tools



The SetCameraMode function changes the camera mode for the given camera. If no camera name is given, then the first connected camera is taken.


  • cameraMode: The camera mode.
  • 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.


bool: SetCameraMode(string cameraMode[, string cameraName="", bool waitUntilFinished=true])


var result = SetCameraMode("photo");
// Sets the camera mode of the first connected camera to "photo".
// False is returned if the camera does not support the mode "photo",
// or if changing the mode failed.
setcameramode.txt · Last modified: 2016/09/06 08:35 by act