td_viewport
Captures a TOP/COMP viewer or network editor pane as an image to visualize changes in your TouchDesigner network.
Instructions
Capture a TOP/COMP viewer or the network editor pane as an image.
Use this to actually see the result of edits instead of guessing.
target is a TOP/COMP path, or 'pane' for the current network editor.
Small inline captures are returned as a viewable image; large captures
(or return_as='path') return a temp-file path string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Optional output width. | |
| format | No | 'png' or 'jpg'. | png |
| height | No | Optional output height. | |
| target | Yes | TOP/COMP path to capture, or the literal 'pane'. | |
| quality | No | JPG quality 1-100 (ignored for PNG). | |
| return_as | No | 'base64' inline, or 'path' for a temp-file path. | base64 |