Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit098ece8e9e

README.md

generator.program

The program a graph names stands in place of its cook. A graph that states a program (g:program(path)) names a module whose run(owner, params, opts) stands what the graph draws from the Generator's params and answers the standing (or nil and the reason it does not take them), whose tick(standing, seconds) moves it and whose release(standing) lets it go.

A Generator runs the program where it would cook the graph, ticks it with its playhead (the playhead runs on while the generator plays, as it does for a graph that cooks), and releases it when the graph, the params or the component change or go. Where the program refuses the params the Generator cooks the graph as before and playback().program.refused says why. playback().program also states what the program stood: its pieces, the kernels and graphs that made them, its meshes, materials, draws, populations, rows and triangles, and the milliseconds it took.

Part of the Generator's context, installed by generator.