User Tools

Site Tools


setcameramode

This is an old revision of the document!


SetCameraMode

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

Parameters

  • 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.

Syntax

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

Examples

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