editor/reference/screenshot.md
konstantin-paulus e85cee917a Refactor CLI and API structure by removing deprecated components
Eliminated the `compile-project.ts` and `open-folder.ts` files from the CLI, streamlining the codebase. Updated the README to reflect changes in CLI commands, including the removal of outdated examples. Adjusted the API to enhance clarity and maintainability by consolidating asset handling functions and removing unused types. This refactor improves the overall architecture and reduces complexity in the CLI interactions.
2026-08-14 14:52:20 +02:00

825 B

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 capture instead.

The shot is taken from the app's own window buffer, so it works even when the window is hidden 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.

{ path: string, width: number, height: number }

Errors

Exits non-zero if the app is not running.