How bright the picture is: shutter speed, ISO, aperture and the modes around them. This is one of the 7 pages of the settings reference, which names every setting. Exposure 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.
| Setting | Id | Getter and setter |
|---|---|---|
| Shutter speed | shutterSpeed | getShutterSpeed setShutterSpeed |
| ISO | iso | getIso setIso |
| Aperture | aperture | getAperture setAperture |
| Exposure mode | exposureMode | getExposureMode setExposureMode |
| Exposure compensation | exposureCompensation | getExposureCompensation setExposureCompensation |
| Metering | meteringMode | getMeteringMode setMeteringMode |
Shutter speed
How long the shutter stays open for each picture. Faster freezes motion; slower lets in more light.
A shutter speed in Slate's one spelling, whatever the vendor calls it: '1/250', '30"', '0.3"', '180°', 'Bulb'. Each vendor codec's label (Sony BULB, Canon 30, a standard ExposureTime tick count) is read through parseExposureTime and written back in this form.
| Id | shutterSpeed, for setControl and getCapabilities().controls.shutterSpeed |
| Value type | ShutterSpeed |
| How to use it | Exposure: Shutter speed |
setControl also takes | An ExposureTime object, or text parseExposureTime reads: 1/250, 0.5", 0.5 s, 180°, 180 deg, bulb, time, flash sync, auto. It must equal a value the camera offers, never a nearby one. Converting between an angle and a duration needs context.framesPerSecond. |
| Search words | shutter speed, shutter angle, shutterAngle, exposureTime, exposure time |
Values Patterns <number>/<number> <number>" <number>°, and 4 named values. A camera offers only some of them: getCapabilities().controls.shutterSpeed.allowedValues lists which, right now.
Bulb Time Flash sync Auto
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | ExposureTime (0x500d) |
| Canon | CanonShutterSpeed (0xd102) |
| Nikon | NikonPhotoShutterSpeed (0xd100), NikonMovieShutterSpeed (0xd1a8) |
| Sony | ShutterSpeed (0xd20d) |
getShutterSpeed
getShutterSpeed(): Promise<ShutterSpeed> · MCP camera_get_shutter_speed · CLI darkgrade camera get-shutter-speed
setShutterSpeed
MCP camera_set_shutter_speed · CLI darkgrade camera set-shutter-speed
setShutterSpeed(
value: ShutterSpeed | ExposureTime,
context?: ExposureContext,
): Promise<ShutterSpeed>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
ISO
The sensor's sensitivity. Higher is brighter in low light, with more noise.
An ISO sensitivity: ISO 800, Auto, and the Sony labels that are distinct settings rather than spellings (an extended sensitivity, the Multi Frame NR sensitivities). Auto/manual on a Sony body with a separate gain switch is the recorded exception: Slate flips that switch inside the write.
| Id | iso, for setControl and getCapabilities().controls.iso |
| Value type | Iso |
| How to use it | Exposure: ISO |
setControl also takes | 800 or iso 800 for ISO 800; auto in any case. |
| Search words | sensitivity, exposure index, gain, EI |
Values Patterns ISO <number> ISO <number> (extended) Multi Frame NR ISO <number> Multi Frame NR High ISO <number>, and 1 named value. A camera offers only some of them: getCapabilities().controls.iso.allowedValues lists which, right now.
Auto
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | ExposureIndex (0x500f) |
| Canon | CanonIso (0xd103) |
| Nikon | NikonMovieISO (0xd1aa) |
| Sony | Iso (0xd21e) |
getIso
getIso(): Promise<Iso> · MCP camera_get_iso · CLI darkgrade camera get-iso
setIso
MCP camera_set_iso · CLI darkgrade camera set-iso
setIso(value: Iso): Promise<Iso>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Aperture
How wide the lens opens. A lower f-number lets in more light and blurs the background more.
An aperture in Slate's one spelling: f/ and the f-number without trailing zeros (f/4, f/2.8).
| Id | aperture, for setControl and getCapabilities().controls.aperture |
| Value type | Aperture |
| How to use it | Exposure: Aperture |
setControl also takes | f4, F4.0 or 4 for f/4; auto in any case. Only trailing zeros are dropped: f/2.83 is refused, never written as f/2.8. |
| Search words | f number, f-stop, iris, T-stop |
Values Pattern f/<number>, and 1 named value. A camera offers only some of them: getCapabilities().controls.aperture.allowedValues lists which, right now.
Auto
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | FNumber (0x5007) |
| Canon | CanonAperture (0xd101) |
| Nikon | NikonMovieFNumber (0xd1a9) |
| Sony | Aperture (0x5007) |
getAperture
getAperture(): Promise<Aperture> · MCP camera_get_aperture · CLI darkgrade camera get-aperture
setAperture
MCP camera_set_aperture · CLI darkgrade camera set-aperture
setAperture(value: Aperture): Promise<Aperture>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Exposure mode
Who picks the exposure: you (Manual), the camera (Program, Auto), or the two of you (aperture or shutter priority).
On Sony, ExposureProgramMode also carries the Movie and S&Q programs: that half is photoVideoMode. Sony's cine MovieShootingMode (0xe000: Cine EI, Flexible ISO) is not mapped to any setting.
| Id | exposureMode, for setControl and getCapabilities().controls.exposureMode |
| Value type | ExposureMode |
| How to use it | Exposure: Exposure mode |
setControl also takes | The mode-dial letters M (Manual), A (Aperture priority), Av (Aperture priority), S (Shutter priority), Tv (Shutter priority), P (Program), Fv (Flexible priority), B (Bulb), and the mode names in any case. |
| Search words | exposure mode, exposure program, shooting mode, PASM, mode dial |
Values 15 named values. A camera offers only some of them: getCapabilities().controls.exposureMode.allowedValues lists which, right now.
Every named value (15)
Every named value (15)
Bulb Auto Manual Aperture priority Shutter priority Program Flexible priority M A Av S Tv P Fv B
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | ExposureProgramMode (0x500e) |
| Canon | CanonAutoExposureMode (0xd105) |
getExposureMode
getExposureMode(): Promise<ExposureMode> · MCP camera_get_exposure_mode · CLI darkgrade camera get-exposure-mode
setExposureMode
MCP camera_set_exposure_mode · CLI darkgrade camera set-exposure-mode
setExposureMode(
value: ExposureMode | ExposureModeAlias,
): Promise<ExposureMode>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Exposure compensation
Makes the picture brighter or darker than the camera's meter would choose, in stops. It applies when the camera sets part of the exposure itself.
Exposure compensation in stops with one decimal and a sign: +0.7, -1.0, 0.0.
| Id | exposureCompensation, for setControl and getCapabilities().controls.exposureCompensation |
| Value type | ExposureCompensation |
| How to use it | Exposure: Exposure compensation |
setControl also takes | +1 or 1 EV for +1.0. Only exact one-decimal values: +0.33 is refused, never rounded to +0.3. |
| Search words | exposure compensation, EV, exposure comp, exposure bias |
Values Patterns +<number> -<number>, and 1 named value. A camera offers only some of them: getCapabilities().controls.exposureCompensation.allowedValues lists which, right now.
0.0
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | ExposureBiasCompensation (0x5010) |
| Canon | CanonExpCompensation (0xd104) |
| Nikon | NikonMovieExposureBiasCompensation (0xd1ab) |
| Sony | ExposureCompensation (0x5010) |
getExposureCompensation
getExposureCompensation(): Promise<ExposureCompensation> · MCP camera_get_exposure_compensation · CLI darkgrade camera get-exposure-compensation
setExposureCompensation
MCP camera_set_exposure_compensation · CLI darkgrade camera set-exposure-compensation
setExposureCompensation(
value: ExposureCompensation,
): Promise<ExposureCompensation>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Metering
Which part of the frame the camera measures light from.
| Id | meteringMode, for setControl and getCapabilities().controls.meteringMode |
| Value type | MeteringMode |
| How to use it | Exposure: Metering |
setControl also takes | The names in any case. |
| Search words | metering mode, metering |
Values 7 named values. A camera offers only some of them: getCapabilities().controls.meteringMode.allowedValues lists which, right now.
Multi Center-weighted Spot Large spot Partial Average Highlight
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | ExposureMeteringMode (0x500b) |
| Canon | CanonMeteringMode (0xd107) |
| Nikon | NikonMovieExposureMeteringMode (0xd1af) |
getMeteringMode
getMeteringMode(): Promise<MeteringMode> · MCP camera_get_metering_mode · CLI darkgrade camera get-metering-mode
setMeteringMode
MCP camera_set_metering_mode · CLI darkgrade camera set-metering-mode
setMeteringMode(value: MeteringMode): Promise<MeteringMode>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Other settings
What a recording is: the photo or video mode, the format, quality and frame rate, and sound.
What a photo is and how it is taken: drive mode, shutter type and flash, and the file the camera writes.
The colour of the light and how the camera renders it: white balance, colour temperature, the look and the picture profile.
How the camera finds and follows a subject: focus mode and area, and subject detection.
The two settings beside the zoom operations: image stabilisation and digital zoom.
The one setting of the live picture: its quality.
Related
The class: constructor, every method, what each returns and throws.
Every setting id with its values, getter, setter and vendor properties.
Every exported type, field by field.
Every error class: when it is thrown and what to do.
Every import path of the package and what it exports.