--- title: "Focus settings" description: "Slate's focus settings with each getter, setter and value: focus mode, focus area, subject detection, detection subject, eye selection and continuous AF." url: https://darkgrade.com/docs/slate/reference/settings-focus last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Focus settings > Slate's focus settings with each getter, setter and value: focus mode, focus area, subject detection, detection subject, eye selection and continuous AF. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. 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](https://darkgrade.com/docs/slate/reference/settings.md), which names every setting. [Focus](https://darkgrade.com/docs/functionality/focus.md) shows each at work in Studio, MCP, the CLI and Slate. Read and write one with its typed getter and setter, or with [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#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`](https://darkgrade.com/docs/slate/reference/errors.md#camerarefusederror) before sending anything; a getter throws [`CameraUnsupportedError`](https://darkgrade.com/docs/slate/reference/errors.md#cameraunsupportederror) when the setting is absent or does not apply in the current mode. | Setting | Id | Getter and setter | | - | - | - | | [Focus mode](#focus-mode) | `focusMode` | [`getFocusMode`](#getfocusmode) [`setFocusMode`](#setfocusmode) | | [Focus area](#focus-area) | `focusArea` | [`getFocusArea`](#getfocusarea) [`setFocusArea`](#setfocusarea) | | [Subject detection](#subject-detection) | `subjectDetection` | [`getSubjectDetection`](#getsubjectdetection) [`setSubjectDetection`](#setsubjectdetection) | | [Detection subject](#detection-subject) | `detectionSubject` | [`getDetectionSubject`](#getdetectionsubject) [`setDetectionSubject`](#setdetectionsubject) | | [Eye selection](#eye-selection) | `eyeSelection` | [`getEyeSelection`](#geteyeselection) [`setEyeSelection`](#seteyeselection) | | [Continuous AF](#continuous-af) | `continuousAutofocus` | [`getContinuousAutofocus`](#getcontinuousautofocus) [`setContinuousAutofocus`](#setcontinuousautofocus) | ## 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. | | | | - | - | | Id | `focusMode`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.focusMode` | | Value type | [`FocusMode`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#focusmode) | | How to use it | [Focus: Focus mode](https://darkgrade.com/docs/functionality/focus.md#focus-mode) | | Search words | *focus 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. | Brand | Properties | | - | - | | PTP | [`FocusMode`](https://darkgrade.com/docs/slate/ptp-reference/property-definitions.md#focusmode-0x500a) (`0x500a`) | | Canon | [`CanonFocusMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canonfocusmode-0xd108) (`0xd108`), [`CanonMovieServoAutofocus`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canonmovieservoautofocus-0xd179) (`0xd179`) | | Nikon | [`NikonStillFocusMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-shooting-property-definitions.md#nikonstillfocusmode-0xd061) (`0xd061`), [`NikonMovieFocusMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-shooting-property-definitions.md#nikonmoviefocusmode-0xd1fa) (`0xd1fa`) | ### getFocusMode `getFocusMode(): Promise` · MCP `camera_get_focus_mode` · CLI `darkgrade camera get-focus-mode` ### setFocusMode MCP `camera_set_focus_mode` · CLI `darkgrade camera set-focus-mode` ```typescript setFocusMode(value: FocusMode): Promise ``` 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. | | | | - | - | | Id | `focusArea`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.focusArea` | | Value type | [`FocusArea`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#focusarea) | | How to use it | [Focus: Focus area](https://darkgrade.com/docs/functionality/focus.md#focus-area) | | Search words | *focus 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. | Brand | Properties | | - | - | | Canon | [`CanonLiveViewAutofocusMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canonliveviewautofocusmode-0xd1ba) (`0xd1ba`) | | Nikon | [`NikonStillFocusMeteringMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-format-property-definitions.md#nikonstillfocusmeteringmode-0xd05d) (`0xd05d`), [`FocusMeteringMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-property-definitions.md#focusmeteringmode-0x501c) (`0x501c`), [`NikonMovieFocusMeteringMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-format-property-definitions.md#nikonmoviefocusmeteringmode-0xd1f8) (`0xd1f8`) | | Sony | [`FocusArea`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#focusarea-0xd22c) (`0xd22c`) | ### getFocusArea `getFocusArea(): Promise` · MCP `camera_get_focus_area` · CLI `darkgrade camera get-focus-area` ### setFocusArea MCP `camera_set_focus_area` · CLI `darkgrade camera set-focus-area` ```typescript setFocusArea(value: FocusArea): Promise ``` 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. | | | | - | - | | Id | `subjectDetection`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.subjectDetection` | | Value type | [`SubjectDetection`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#subjectdetection) | | How to use it | [Focus: Subject detection](https://darkgrade.com/docs/functionality/focus.md#subject-detection) | | Search words | *subject 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. | Brand | Properties | | - | - | | Canon | `CanonSubjectDetection` | | Nikon | `NikonSubjectDetection`, `NikonMovieSubjectDetection` | | Sony | [`SubjectRecognitionInAF`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#subjectrecognitioninaf-0xd157) (`0xd157`) | ### getSubjectDetection `getSubjectDetection(): Promise` · MCP `camera_get_subject_detection` · CLI `darkgrade camera get-subject-detection` ### setSubjectDetection MCP `camera_set_subject_detection` · CLI `darkgrade camera set-subject-detection` ```typescript setSubjectDetection( value: SubjectDetection, ): Promise ``` 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, ... | | | | - | - | | Id | `detectionSubject`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.detectionSubject` | | Value type | [`DetectionSubject`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#detectionsubject) | | How to use it | [Focus: Detection subject](https://darkgrade.com/docs/functionality/focus.md#detection-subject) | | Search words | *recognition 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. | Brand | Properties | | - | - | | Canon | `CanonDetectionSubject` | | Nikon | `NikonDetectionSubject`, `NikonMovieDetectionSubject` | | Sony | [`RecognitionTarget`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#recognitiontarget-0xd158) (`0xd158`) | ### getDetectionSubject `getDetectionSubject(): Promise` · MCP `camera_get_detection_subject` · CLI `darkgrade camera get-detection-subject` ### setDetectionSubject MCP `camera_set_detection_subject` · CLI `darkgrade camera set-detection-subject` ```typescript setDetectionSubject( value: DetectionSubject, ): Promise ``` 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). | | | | - | - | | Id | `eyeSelection`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.eyeSelection` | | Value type | [`EyeSelection`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#eyeselection) | | How to use it | [Focus: Eye selection](https://darkgrade.com/docs/functionality/focus.md#eye-selection) | | Search words | *eye 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. | Brand | Properties | | - | - | | Canon | [`CanonEyeDetection`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canoneyedetection-0xd12c) (`0xd12c`) | | Sony | [`RightLeftEyeSelect`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#rightlefteyeselect-0xd159) (`0xd159`) | ### getEyeSelection `getEyeSelection(): Promise` · MCP `camera_get_eye_selection` · CLI `darkgrade camera get-eye-selection` ### setEyeSelection MCP `camera_set_eye_selection` · CLI `darkgrade camera set-eye-selection` ```typescript setEyeSelection(value: EyeSelection): Promise ``` 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. | | | | - | - | | Id | `continuousAutofocus`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.continuousAutofocus` | | Value type | [`ContinuousAutofocus`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#continuousautofocus) | | How to use it | [Focus: Continuous AF](https://darkgrade.com/docs/functionality/focus.md#continuous-af) | | Search words | *continuous 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. | Brand | Properties | | - | - | | Canon | [`CanonContinuousAutofocus`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canoncontinuousautofocus-0xd1c9) (`0xd1c9`) | | Sony | [`PreAF`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#preaf-0xd1af) (`0xd1af`) | ### getContinuousAutofocus `getContinuousAutofocus(): Promise` · MCP `camera_get_continuous_autofocus` · CLI `darkgrade camera get-continuous-autofocus` ### setContinuousAutofocus MCP `camera_set_continuous_autofocus` · CLI `darkgrade camera set-continuous-autofocus` ```typescript setContinuousAutofocus( value: ContinuousAutofocus, ): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## Other settings > [card] [Exposure settings](https://darkgrade.com/docs/slate/reference/settings-exposure.md) > > How bright the picture is: shutter speed, ISO, aperture and the modes around them. > [card] [Video settings](https://darkgrade.com/docs/slate/reference/settings-video.md) > > What a recording is: the photo or video mode, the format, quality and frame rate, and sound. > [card] [Photo settings](https://darkgrade.com/docs/slate/reference/settings-photos.md) > > What a photo is and how it is taken: drive mode, shutter type and flash, and the file the camera writes. > [card] [Colour and look settings](https://darkgrade.com/docs/slate/reference/settings-color.md) > > The colour of the light and how the camera renders it: white balance, colour temperature, the look and the picture profile. > [card] [Zoom and stabilisation settings](https://darkgrade.com/docs/slate/reference/settings-zoom.md) > > The two settings beside the zoom operations: image stabilisation and digital zoom. > [card] [Live view settings](https://darkgrade.com/docs/slate/reference/settings-live-view.md) > > The one setting of the live picture: its quality. ## Related > [card] [Camera](https://darkgrade.com/docs/slate/getting_started/camera.md) > > The class: constructor, every method, what each returns and throws. > [card] [Settings](https://darkgrade.com/docs/slate/reference/settings.md) > > Every setting id with its values, getter, setter and vendor properties. > [card] [Types](https://darkgrade.com/docs/slate/reference/types.md) > > Every exported type, field by field. > [card] [Errors](https://darkgrade.com/docs/slate/reference/errors.md) > > Every error class: when it is thrown and what to do. > [card] [Entry points](https://darkgrade.com/docs/slate/reference/entry-points.md) > > Every import path of the package and what it exports.