editor/reference/screenshot.md

22 lines
871 B
Markdown
Raw Permalink Normal View History

# `dapi screenshot`
Captures the entire application window as a PNG: the full UI as the user sees it (panels, timeline, asset library, canvas viewport), at the window's current size. Use it to check what the app itself looks like; to render a node or scene cleanly for composition checks use [`node capture`](./node/capture.md) instead.
The shot is taken from the app's own window buffer, so it works even when the window is hidden (launched with `open --background`) or covered by other windows, and never includes anything outside the app.
## Options
- `-o, --output <dir>`: directory to write the PNG into (default: the system temp directory)
## Output
One JSON object: the absolute path to a freshly written PNG, plus the image's pixel dimensions.
```ts
{ path: string, width: number, height: number }
```
## Errors
Exits non-zero if the app is not running.