User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

getcamerastate [2016/09/06 07:32] (current)
act created
Line 1: Line 1:
 +====== GetCameraState ======
 +The ''​GetCameraState''​ function returns the current [[getpossiblecamerastatesfortype|camera state]] for a given [[getcamerastatetypes|camera state type]] for the given camera. If no camera name is given, then the first connected camera is taken.
 +==== Syntax ====
 +string: GetCameraState(string cameraStateName[,​ string cameraName=""​])
 +==== Examples ====
 +var result = GetCameraState("​ConnectionState",​ "GoPro Hero 4");
 +// returns the current connection state for the GoPro Hero 4
 +// camera.
 +// Returns false if the given camera state name is invalid.
getcamerastate.txt · Last modified: 2016/09/06 07:32 by act