User Tools

Site Tools


This is an old revision of the document!


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.1473138570.txt.gz · Last modified: 2016/09/06 07:09 by act