Skip to main content
SettingsExposure settings

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.

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.

IdshutterSpeed, for setControl and getCapabilities().controls.shutterSpeed
Value typeShutterSpeed
How to use itExposure: Shutter speed
setControl also takesAn 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 wordsshutter 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

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

BrandProperties
PTPExposureTime (0x500d)
CanonCanonShutterSpeed (0xd102)
NikonNikonPhotoShutterSpeed (0xd100), NikonMovieShutterSpeed (0xd1a8)
SonyShutterSpeed (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.

Idiso, for setControl and getCapabilities().controls.iso
Value typeIso
How to use itExposure: ISO
setControl also takes800 or iso 800 for ISO 800; auto in any case.
Search wordssensitivity, 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

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

BrandProperties
PTPExposureIndex (0x500f)
CanonCanonIso (0xd103)
NikonNikonMovieISO (0xd1aa)
SonyIso (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).

Idaperture, for setControl and getCapabilities().controls.aperture
Value typeAperture
How to use itExposure: Aperture
setControl also takesf4, 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 wordsf 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

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

BrandProperties
PTPFNumber (0x5007)
CanonCanonAperture (0xd101)
NikonNikonMovieFNumber (0xd1a9)
SonyAperture (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.

IdexposureMode, for setControl and getCapabilities().controls.exposureMode
Value typeExposureMode
How to use itExposure: Exposure mode
setControl also takesThe 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 wordsexposure 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)

Bulb Auto Manual Aperture priority Shutter priority Program Flexible priority M A Av S Tv P Fv B

Protocol properties

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

BrandProperties
PTPExposureProgramMode (0x500e)
CanonCanonAutoExposureMode (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.

IdexposureCompensation, for setControl and getCapabilities().controls.exposureCompensation
Value typeExposureCompensation
How to use itExposure: 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 wordsexposure 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

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

BrandProperties
PTPExposureBiasCompensation (0x5010)
CanonCanonExpCompensation (0xd104)
NikonNikonMovieExposureBiasCompensation (0xd1ab)
SonyExposureCompensation (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.

IdmeteringMode, for setControl and getCapabilities().controls.meteringMode
Value typeMeteringMode
How to use itExposure: Metering
setControl also takesThe names in any case.
Search wordsmetering 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

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

BrandProperties
PTPExposureMeteringMode (0x500b)
CanonCanonMeteringMode (0xd107)
NikonNikonMovieExposureMeteringMode (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

⌘I