Model
Explanation on the model.
Introduction
The Model
allows you to run your Rhino Grasshopper definitions on Packhunt. Models are often used to generate geometry, but can also be used to encode any other type of algorithmic logic.
With the Model
you can,
- Run your model with the user inputs by subscribing the
Model
to theControlPanel
. - Display model output results as text or in a table by subscribing the ControlPanel to the Model.
- Trigger the solving of the model only when certain inputs are changed with the
triggerSolveOn
option. - Assign materials to the geometry to display them with different colours by subscribing the
Viewer
to theModel
. - Assign layers to the geometry to hide/unhide them in the solution by subscribing the
Viewer
to theModel
.
Below is the configuration example. (Note that some content has been omitted.)
my-model:
kind: Model
modelFile: my-grasshopper-file.gh
triggerSolveOn: [my-value1, my-value2] # OPTIONAL
subscribe: # OPTIONAL
- kind: ControlPanel
frame: my-home-frame
source: my-control-panel
Schema
See the modelConfig schema docs for more information.