The colour of the light and how the camera renders it: white balance, colour temperature, the look and the picture profile. This is one of the 7 pages of the settings reference, which names every setting. Colour and look 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 |
|---|---|---|
| White balance | whiteBalance | getWhiteBalance setWhiteBalance |
| Colour temperature | colorTemperature | getColorTemperature setColorTemperature |
| Look | pictureStyle | getPictureStyle setPictureStyle |
| Picture profile | pictureProfile | getPictureProfile setPictureProfile |
White balance
Which light the camera corrects colour for: a preset such as Daylight, auto, or a temperature in Kelvin.
A white balance in Slate's one spelling, whatever the vendor calls it: Nikon's "Sunny" is 'Daylight', Canon's kebab-case codes are 'Auto', 'Shade', 'Color Temperature' and so on. The names come from the vendor codecs, one table per vendor and mode.
| Id | whiteBalance, for setControl and getCapabilities().controls.whiteBalance |
| Value type | WhiteBalance |
| How to use it | Colour and look: White balance |
| Search words | white balance, wb |
Values 28 named values. A camera offers only some of them: getCapabilities().controls.whiteBalance.allowedValues lists which, right now.
Every named value (28)
Every named value (28)
Flash Auto Custom One-push Auto Daylight Fluorescent Tungsten Shade Cloudy Fluorescent Warm White Fluorescent Cool White Fluorescent Day White Fluorescent Daylight Underwater Auto Color Temperature Custom 1 Custom 2 Custom 3 PC Custom 1 PC Custom 2 PC Custom 3 Custom 4 Custom 5 PC Custom 4 PC Custom 5 Auto White Priority Same as photo Natural Light Auto
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | WhiteBalance (0x5005) |
| Canon | CanonWhiteBalance (0xd109) |
| Nikon | NikonMovieWhiteBalance (0xd23a) |
getWhiteBalance
getWhiteBalance(): Promise<WhiteBalance> · MCP camera_get_white_balance · CLI darkgrade camera get-white-balance
setWhiteBalance
MCP camera_set_white_balance · CLI darkgrade camera set-white-balance
setWhiteBalance(value: WhiteBalance): Promise<WhiteBalance>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Colour temperature
White balance as a temperature in Kelvin: lower is cooler (bluer), higher is warmer. It applies only while white balance is Color Temperature; under a preset, reading or setting it fails.
A colour temperature in kelvin.
| Id | colorTemperature, for setControl and getCapabilities().controls.colorTemperature |
| Value type | ColorTemperature |
| How to use it | Colour and look: Colour temperature |
setControl also takes | A number of kelvin, or its whole-number text (5600), so every listed choice can be written back. |
| Search words | colour temperature, color temperature, kelvin |
Values A number on the camera's own scale. getCapabilities().controls.colorTemperature gives its range or allowedValues now.
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonColorTemperature (0xd10a) |
| Nikon | NikonWhiteBalanceKelvin (0xd01e), NikonMovieWhiteBalanceKelvin (0xd21a) |
| Sony | ColorTemperature (0xd20f) |
getColorTemperature
getColorTemperature(): Promise<ColorTemperature> · MCP camera_get_color_temperature · CLI darkgrade camera get-color-temperature
setColorTemperature
MCP camera_set_color_temperature · CLI darkgrade camera set-color-temperature
setColorTemperature(
value: ColorTemperature,
): Promise<ColorTemperature>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Look
The camera's colour and contrast look. A Sony Creative Look, a Canon Picture Style and a Nikon Picture Control are all this one setting.
A look in Slate's one spelling: Canon Picture Style, Nikon Picture Control and Sony Creative Look or Creative Style ('Standard', 'Portrait', 'Monochrome', ...).
| Id | pictureStyle, for setControl and getCapabilities().controls.pictureStyle |
| Value type | PictureStyle |
| How to use it | Colour and look: Look |
| Search words | look, picture style, picture control, creative look, creative style, film simulation |
Values 71 named values. A camera offers only some of them: getCapabilities().controls.pictureStyle.allowedValues lists which, right now.
Every named value (71)
Every named value (71)
Auto Custom 1 Custom 2 Custom 3 Standard Portrait Neutral Vivid Vivid 2 Film Instant Soft highkey Monochrome Sepia Film 2 Film 3 Custom look 1 Custom look 2 Custom look 3 Custom look 4 Custom look 5 Custom look 6 Landscape Sunset Light Clear Deep Night view Autumn leaves Creative box 1 Creative box 2 Creative box 3 Creative box 4 Creative box 5 Creative box 6 Custom 4 Custom 5 Faithful Fine detail User defined 1 User defined 2 User defined 3 PC 1 PC 2 PC 3 Same as photo Flat Rich tone portrait Dream Morning Pop Sunday Somber Drama Silence Bleach Melancholic Pure Denim Toy Blue Red Pink Charcoal Graphite Binary Carbon Custom 6 Custom 7 Custom 8 Custom 9
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonPictureStyle (0xd110) |
| Nikon | NikonPictureControl (0xd200), NikonMoviePictureControl (0xd237) |
| Sony | CreativeLook (0xd0fa), CreativeStyle (0xd240) |
getPictureStyle
getPictureStyle(): Promise<PictureStyle> · MCP camera_get_picture_style · CLI darkgrade camera get-picture-style
setPictureStyle
MCP camera_set_picture_style · CLI darkgrade camera set-picture-style
setPictureStyle(value: PictureStyle): Promise<PictureStyle>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Picture profile
Gamma and log modes for video you plan to grade: Sony picture profiles, Nikon tone modes.
A Sony Picture Profile ('Off', 'PP1' to 'PP11', 'PP LUT 1' to 'PP LUT 4').
| Id | pictureProfile, for setControl and getCapabilities().controls.pictureProfile |
| Value type | PictureProfile |
| How to use it | Colour and look: Picture profile |
| Search words | picture profile, gamma, log, tone mode, N-Log, HLG |
Values 19 named values. A camera offers only some of them: getCapabilities().controls.pictureProfile.allowedValues lists which, right now.
Every named value (19)
Every named value (19)
N-Log HLG Off PP1 PP2 PP3 PP4 PP5 PP6 PP7 PP8 PP9 PP10 PP11 PP LUT 1 PP LUT 2 PP LUT 3 PP LUT 4 SDR
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Nikon | NikonToneMode (0x1d01c), NikonMovieH265ToneMode (0x1d001), NikonMovieProResToneMode (0x1d000), NikonMovieNRawToneMode (0x1d028), NikonMovieProResRawToneMode (0x1d029) |
| Sony | PictureProfile (0xd23f) |
getPictureProfile
getPictureProfile(): Promise<PictureProfile> · MCP camera_get_picture_profile · CLI darkgrade camera get-picture-profile
setPictureProfile
MCP camera_set_picture_profile · CLI darkgrade camera set-picture-profile
setPictureProfile(value: PictureProfile): Promise<PictureProfile>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Other settings
How bright the picture is: shutter speed, ISO, aperture and the modes around them.
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.
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.