Darkgrade controls 15 Nikon Z cameras from a Mac or Linux computer over USB, from the Z30 and Z50 to the Z8, Z9 and ZR. This is tethered shooting. From code, that is one command (npx darkgrade camera take-photo) or a few lines of TypeScript with Slate; on a Mac, Studio does it with no code. On a Nikon, what you can set follows the photo/movie switch on the body more than on any other brand, so this page starts there.
Before you plug in a Nikon
A Nikon usually has no USB mode to set. Quit NX Tether if it is open, since only one program can hold a camera over USB. Then connect it with a USB cable that carries data and switch it on.
- Choose MTP/PTP on a body that has the setting. Some bodies have a USB item in the network menu: [USB data connection] on the Z8, [USB] on the Zf. Nikon's manuals for both say to select [MTP/PTP] when connecting to computers, and that [iPhone] is only for an iPhone running NX MobileAir.
- On a Z8, use the USB data connector. The Z8 has two USB sockets, and its manual says the computer will not detect a camera connected via the USB Power Delivery connector.
Check the photo/movie switch. A Nikon shows its photo settings in photo mode and its video settings in movie mode:
| The body is in | You can set |
|---|---|
| Photo mode | Drive mode, flash, RAW compression and the other photo settings |
| Movie mode | Video format, frame rate and the other video settings |
Darkgrade switches the mode for you when you take a photo or start a recording, and switches it back. In Studio, the switch on the body decides which of the two Studio can fully control.
On a Mac, macOS itself may hold the camera: Could not claim the USB device has the fix for each product.
Supported Nikon cameras
All 15 work in Studio, MCP, the CLI and Slate. They are all Z-mount mirrorless bodies.
- Z5
- Z5 II
- Z6
- Z6 II
- Z6 III
- Z7
- Z7 II
- Z8
- Z9
- Zf
- ZR
- Z30
- Z50
- Z50 II
- Zfc
A Nikon that is not here, a DSLR included, still gets the Nikon driver when you plug it in: try it. The full list has a search box and the other two brands.
What a Nikon can do
Settings, autofocus, focus on a point, manual focus steps, photos, live view, video, card files and the battery all work. A Nikon also has flash and picture profile, which on a Nikon is the tone mode, such as N-Log or HLG.
Four things are not there on a Nikon:
| Not on Nikon | Why |
|---|---|
| Eye selection | Z cameras have no left or right eye setting. |
| Continuous AF | Not supported yet. |
| Zoom to a focal length | Sony only. A Nikon can start and stop a power zoom. |
| The camera's on-screen display in live view | Sony only. |
Good to know
- Manual focus steps need an autofocus mode such as AF-S, not MF. This is the reverse of a Sony.
- In auto-area AF, a focus point is where the camera's own tracking starts. In other AF-area modes, the AF area moves to the point.
- Frame rates are the real frequencies:
29.97p,23.98p. - Video quality is a frame size, such as
3840x2160, and video formats carry Nikon's names, such asH.265 10-bit (MOV)andProRes 422 HQ 10-bit (MOV). - The audio level runs from 1 to 20.
Wi-Fi
Studio, MCP and the CLI reach a Nikon over USB only. From Slate, a Nikon also connects over Wi-Fi with PTP/IP, and it is the one brand that asks for pairing first: the camera announces itself on the network, shows a code, and accepts a computer only after a person confirms the same code on its screen. Slate has a helper for each step, ending with connectNikonWifiCamera.
On the camera, turn on Network → Connect to computer → Camera Control with a network profile first. Pairing is experimental: it was observed on the Nikon ZR, and the Z6 III is not validated. See Nikon: discover, pair and connect.
Nikon's words
Darkgrade uses one name per setting on every brand. These are the Nikon words for them:
| Nikon says | In Darkgrade |
|---|---|
| Picture Control | Look |
| Tone mode, N-Log | Picture profile |
| AF-S, AF-C, AF-F | Focus modes |
| AF-area mode | Focus area |
| Vibration reduction, VR | Image stabilisation |
| Release mode | Drive mode |
| NEF compression | RAW compression |
| Image area | Aspect ratio |
| Hi-Res Zoom | Digital zoom |
The Vocabulary has the rest.
First steps with a Nikon
With NX Tether closed and the camera plugged in, put it in single autofocus and move the focus a little closer. On a Nikon the step needs an autofocus mode.
Open Studio. The camera's name replaces
"No camera" above the picture.
Click the microphone and say:
“Focus a little closer.”Ask Claude: “Set the focus mode to AF-S,
then focus a little closer.”
→ camera_set_focus_mode {"value": "AF-S"}
→ camera_nudge_focus {"direction": "near", "size": "small"}npx darkgrade camera get-info
npx darkgrade camera set-focus-mode AF-S
npx darkgrade camera nudge-focus near smallimport { Camera } from '@darkgrade/slate'
const camera = new Camera()
await camera.connect()
try {
await camera.setFocusMode('AF-S')
const { atLimit } = await camera.nudgeFocus('near', 'small')
console.log(atLimit ? 'At the near end' : 'Moved')
} finally {
await camera.disconnect()
}Each product has a quickstart: Studio, MCP, CLI and Slate.
Nikon PTP reference
Over USB, Slate speaks standard PTP plus Nikon's extensions. Nikon's properties are spread over three lists, the device properties, the shooting properties and the format properties, and its events are polled with GetEvent. Nikon's USB vendor ID is 04b0.
AfDrive to StartMovieRecord.