read自动生成
读取一个输出或某个节点的端口。
Reads an output or a node’s port.
{"id": 1, "op": "read"}| 名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
output |
string |
否 | a scene output; the first when neither it nor node is given |
node |
string |
否 | a node, with port |
port |
string |
否 | the node’s port; result when not given |
format |
"png" | "rgba32f" | "ppm" | "summary" | "words" | "field" |
否 | a picture (a Grid of pixels) as png (when not given), rgba32f or ppm; any Field as its summary (when not given and not a picture), its words or the Host’s field file |
from |
integer |
否 | the first element to answer as numbers, counted along the Field, x fastest, then y, then z; 0 when not given |
count |
integer |
否 | how many elements from from to answer as numbers, at most 4096; 1 when not given |
a picture: width, height, format, data (base64). Any other Field: shape, extent, count, schema, fields (each number’s name in an element of several, hp, pos.x), and its summary (each number’s min, max, sum, mean, how many were not zero, and how many were not finite), or values from from (a number, or a list for an element of several), or format and data (base64)

