Skip to main content
SettingsFocus settings

How the camera finds and follows a subject: focus mode and area, and subject detection. This is one of the 7 pages of the settings reference, which names every setting. Focus shows each at work in Studio, MCP, the CLI and Slate.

Read and write one with its typed getter and setter, or with setControl by id. A camera offers only some values of each: getCapabilities().controls lists them now. A setter refuses a value the camera does not offer with CameraRefusedError before sending anything; a getter throws CameraUnsupportedError when the setting is absent or does not apply in the current mode.

Focus mode

How the camera focuses: once and lock (AF-S), keep following the subject (AF-C), or by hand (MF).

AF-S, AF-C or MF, and the other modes a body offers (AF-A, DMF, AF-F, ...). Canon One-Shot is AF-S.

IdfocusMode, for setControl and getCapabilities().controls.focusMode
Value typeFocusMode
How to use itFocus: Focus mode
Search wordsfocus mode, One-Shot, AI Servo, AF-S, AF-C, AF-F, DMF, Movie Servo AF, movie servo autofocus

Values 11 named values. A camera offers only some of them: getCapabilities().controls.focusMode.allowedValues lists which, right now.

AF-S AF-C AF-F DMF AF-A AF-D Preset focus MF MF reverse AF AF macro

Protocol properties

The properties Slate reads and writes for it, by brand.

BrandProperties
PTPFocusMode (0x500a)
CanonCanonFocusMode (0xd108), CanonMovieServoAutofocus (0xd179)
NikonNikonStillFocusMode (0xd061), NikonMovieFocusMode (0xd1fa)

getFocusMode

getFocusMode(): Promise<FocusMode> · MCP camera_get_focus_mode · CLI darkgrade camera get-focus-mode

setFocusMode

MCP camera_set_focus_mode · CLI darkgrade camera set-focus-mode

setFocusMode(value: FocusMode): Promise<FocusMode>

Refuses a value the camera does not offer before sending anything, and resolves to the value read back.

Focus area

Where in the frame autofocus looks: the whole frame, a zone, or a spot.

Wide, Zone, Spot M, Tracking Spot M, ...; Sony's Flexible Spot is Spot, Lock-on AF is Tracking.

IdfocusArea, for setControl and getCapabilities().controls.focusArea
Value typeFocusArea
How to use itFocus: Focus area
Search wordsfocus area, AF area, AF method, AF-area mode

Values 57 named values. A camera offers only some of them: getCapabilities().controls.focusArea.allowedValues lists which, right now.

Every named value (57)

Spot Wide Zone Center Tracking Spot S Spot M Spot L Expanded Spot Spot XS Spot XL Spot Free Size 1 Spot Free Size 2 Spot Free Size 3 Tracking Wide Tracking Zone Tracking Center Tracking Spot S Tracking Spot M Tracking Spot L Tracking Expanded Spot Tracking Spot Tracking Spot XS Tracking Spot XL Tracking Spot Free Size 1 Tracking Spot Free Size 2 Tracking Spot Free Size 3 Quick Single Point Face Tracking Multi Point Expanded Point Cross Expanded Point Around Large Zone Horizontal Large Zone Vertical Flexible Zone 1 Flexible Zone 2 Flexible Zone 3 Spot Without Tracking Single Point Without Tracking Expanded Point Cross Without Tracking Expanded Point Around Without Tracking Dynamic S Auto Area 3D Tracking Dynamic M Dynamic L Pinpoint Wide S Wide L Wide C1 Wide C2 Dynamic 25 Dynamic 72 Dynamic 153 Group Dynamic 9

Protocol properties

The properties Slate reads and writes for it, by brand.

BrandProperties
CanonCanonLiveViewAutofocusMode (0xd1ba)
NikonNikonStillFocusMeteringMode (0xd05d), FocusMeteringMode (0x501c), NikonMovieFocusMeteringMode (0xd1f8)
SonyFocusArea (0xd22c)

getFocusArea

getFocusArea(): Promise<FocusArea> · MCP camera_get_focus_area · CLI darkgrade camera get-focus-area

setFocusArea

MCP camera_set_focus_area · CLI darkgrade camera set-focus-area

setFocusArea(value: FocusArea): Promise<FocusArea>

Refuses a value the camera does not offer before sending anything, and resolves to the value read back.

Subject detection

Whether autofocus finds and follows a subject, such as a face or an eye, on its own.

Whether the camera looks for faces, eyes and other subjects to focus on.

IdsubjectDetection, for setControl and getCapabilities().controls.subjectDetection
Value typeSubjectDetection
How to use itFocus: Subject detection
Search wordssubject recognition, subjectRecognition, eye tracking, eye AF, face detection, subject detection, face and eye detection

Values 2 named values. A camera offers only some of them: getCapabilities().controls.subjectDetection.allowedValues lists which, right now.

Off On

Protocol properties

The properties Slate reads and writes for it, by brand.

BrandProperties
CanonCanonSubjectDetection
NikonNikonSubjectDetection, NikonMovieSubjectDetection
SonySubjectRecognitionInAF (0xd157)

getSubjectDetection

getSubjectDetection(): Promise<SubjectDetection> · MCP camera_get_subject_detection · CLI darkgrade camera get-subject-detection

setSubjectDetection

MCP camera_set_subject_detection · CLI darkgrade camera set-subject-detection

setSubjectDetection(
    value: SubjectDetection,
): Promise<SubjectDetection>

Refuses a value the camera does not offer before sending anything, and resolves to the value read back.

Detection subject

What subject detection looks for: people, animals, vehicles.

What subject detection looks for: People, Animals, Birds, ...

IddetectionSubject, for setControl and getCapabilities().controls.detectionSubject
Value typeDetectionSubject
How to use itFocus: Detection subject
Search wordsrecognition target, recognitionTarget, subject to detect, detection subject, tracking object

Values 9 named values. A camera offers only some of them: getCapabilities().controls.detectionSubject.allowedValues lists which, right now.

Auto People Animals Vehicles Planes Animals and birds Birds Insects Cars and trains

Protocol properties

The properties Slate reads and writes for it, by brand.

BrandProperties
CanonCanonDetectionSubject
NikonNikonDetectionSubject, NikonMovieDetectionSubject
SonyRecognitionTarget (0xd158)

getDetectionSubject

getDetectionSubject(): Promise<DetectionSubject> · MCP camera_get_detection_subject · CLI darkgrade camera get-detection-subject

setDetectionSubject

MCP camera_set_detection_subject · CLI darkgrade camera set-detection-subject

setDetectionSubject(
    value: DetectionSubject,
): Promise<DetectionSubject>

Refuses a value the camera does not offer before sending anything, and resolves to the value read back.

Eye selection

Which eye the camera focuses on when it detects a face.

Which eye subject detection focuses on: Auto, Right or Left; Off where a body can turn eye detection off (Canon).

IdeyeSelection, for setControl and getCapabilities().controls.eyeSelection
Value typeEyeSelection
How to use itFocus: Eye selection
Search wordseye select, eyeSelect, eye selection, eye detection

Values 4 named values. A camera offers only some of them: getCapabilities().controls.eyeSelection.allowedValues lists which, right now.

Auto Off Right Left

Protocol properties

The properties Slate reads and writes for it, by brand.

BrandProperties
CanonCanonEyeDetection (0xd12c)
SonyRightLeftEyeSelect (0xd159)

getEyeSelection

getEyeSelection(): Promise<EyeSelection> · MCP camera_get_eye_selection · CLI darkgrade camera get-eye-selection

setEyeSelection

MCP camera_set_eye_selection · CLI darkgrade camera set-eye-selection

setEyeSelection(value: EyeSelection): Promise<EyeSelection>

Refuses a value the camera does not offer before sending anything, and resolves to the value read back.

Continuous AF

Canon's Continuous AF: the camera keeps the lens roughly in focus before you press, then locks focus as usual. Only cameras that have it list it.

Canon's Continuous AF: in One-Shot it keeps the lens roughly focused before the AF press, then locks like One-Shot. That is not AF-C, so it is a setting of its own, present only where offered.

Whether the camera keeps focusing before a half-press (Canon Continuous AF): On or Off.

IdcontinuousAutofocus, for setControl and getCapabilities().controls.continuousAutofocus
Value typeContinuousAutofocus
How to use itFocus: Continuous AF
Search wordscontinuous AF, continuous autofocus, Pre-AF, pre AF

Values 2 named values. A camera offers only some of them: getCapabilities().controls.continuousAutofocus.allowedValues lists which, right now.

Off On

Protocol properties

The properties Slate reads and writes for it, by brand.

BrandProperties
CanonCanonContinuousAutofocus (0xd1c9)
SonyPreAF (0xd1af)

getContinuousAutofocus

getContinuousAutofocus(): Promise<ContinuousAutofocus> · MCP camera_get_continuous_autofocus · CLI darkgrade camera get-continuous-autofocus

setContinuousAutofocus

MCP camera_set_continuous_autofocus · CLI darkgrade camera set-continuous-autofocus

setContinuousAutofocus(
    value: ContinuousAutofocus,
): Promise<ContinuousAutofocus>

Refuses a value the camera does not offer before sending anything, and resolves to the value read back.

Other settings

⌘I