User Tools

Site Tools


getcamerasetting

Differences

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

Link to this comparison view

Next revision
Previous revision
getcamerasetting [2016/09/06 06:49]
act created
getcamerasetting [2016/09/06 06:56]
act [Examples]
Line 1: Line 1:
 ====== GetCameraSetting ====== ====== GetCameraSetting ======
-The ''​GetCameraSettingList''​ function returns a list of all available settings ​for the given camera. If no camera name is given, then the first connected camera is taken. The returned setting names can be used as arguments for GetCameraSetting,​ SetCameraSetting,​ and [[getcamerasettingvalues|GetCameraSettingValues]] functions.+The ''​GetCameraSetting''​ function returns ​the current [[getcamerasettingvalues|setting value]] for given [[getcamerasettinglist|setting]] ​for the given camera. If no camera name is given, then the first connected camera is taken.
  
 ==== Syntax ==== ==== Syntax ====
 <​code>​ <​code>​
-arrayGetCameraSettingList([string cameraName = ""​])+stringGetCameraSetting(string settingName[string cameraName=""​])
 </​code>​ </​code>​
  
 ==== Examples ==== ==== Examples ====
 <​code>​ <​code>​
-var result = GetCameraSettingList(); +var result = GetCameraSetting("​ExposureCompensation"​"GoPro Hero 4"); 
-// returns an array with all settings for the first connected camera found, +// returns ​the currently set exposure compensation value for the  
-// or false if no connected camera was found. +// GoPro Hero 4 camera. 
- +// False is returned ​if the camera is not connected ​or if the  
-var result = GetCameraSettingList('​GoPro Hero 4'); +// given setting is not supported by the camera.
-// returns ​an array with all settings ​for the GoPro Hero 4 camera, +
-// or false if the camera is not connected.+
 </​code>​ </​code>​
getcamerasetting.txt · Last modified: 2016/09/06 06:56 by act