picture
A picture of a project: its scene through its current camera, at its [window] size, written to a PNG by a second process running balaur run --offscreen…
On this page
A picture of a project: its scene through its current camera, at its [window] size, written to a PNG by a second process running balaur run --offscreen --shot.
1 function, 0 constants. Scripts reach it as picture::.
Functions
Argument kinds are the script values a call passes: node is a node handle, any a table or value of any kind, fn a callback.
| function | acts on | what it does |
|---|---|---|
write(string, string) -> str? |
— | Write a picture of the project at project, of scene (project-relative; its main scene when empty), as the files on disk say. Answers where the PNG will be: [export] output's picture folder, or beside the project's manifest. The picture_event event reports it, { kind: "written", path } or { kind: "failed", path, message }. Nil where no second process can run, as in a browser tab. |