focus.setIfAuto()

Description

Specifies whether to set the focus automatically.

Syntax

DCSObject.camera.focus.setIfAuto(auto);

Parameters

<bool> auto: Specifies whether the setting is controlled manually or automatically.

Return value

bool

true indicates success. false indicates failure.

Remarks

The method should be called after camera.selectCamera(). If there is only one data source available, it will be selected automatically.

Example

             DCSObject.camera.selectCamera("Integrated Camera");
             DCSObject.camera.focus.setIfAuto(true); 
      

See also

.camera.focus.setCurrent()
.camera.focus.getCurrent()
.camera.focus.getDefault()
.camera.focus.getMin()
.camera.focus.getMax()
.camera.focus.getIfAuto()
.camera.focus.getIfDefaultAuto()