export_render_target
Exports a render target asset to an image file on disk as PNG, HDR, or EXR, and verifies the written file for downstream use.
Instructions
Export a render target to an image file on disk: PNG, except an RGBA16f or RGBA32f render target, which writes HDR when filename ends in .hdr and EXR otherwise. exported is measured on disk: the file must exist, hold bytes and have been written by this call. It is false, and the call fails saying why, for a render target without a resource (every render target in a process that cannot render: -nullrhi, a commandlet), an invalid path, a file that cannot be opened for writing, or an image that cannot be read back; an empty file left by a failed export is removed when the call created it.
Returns: { render_target_path: string, output_directory: string, filename: string, file_path: string, exported: bool, file_exists: bool, file_size_bytes: number }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Output file name including extension, e.g. RT_Example.png | |
| output_directory | Yes | Absolute directory path to write into, created if missing | |
| render_target_path | Yes | Asset path of the render target to export |