Preparing Data using Colibri
Last updated
Last updated
Colibri has three major component: Iterator
, Parameters
, and Aggregator
.
The Iterator
component gathers inputs from sources like number slider, value list, and panels. Iterate through all possible iterations, and write out a series of parameters for each iteration to its Genome
output.
The Parameters
component takes any value (text, numbers), and turn them into columns for the CSV file. It can be used to collect both input value and output value.
The Aggregator
component finds or creates a folder in the specified path, combines inputs values from Genome and output values from Phenome as a single CSV file. Take screenshot using image setting, export Spectacles 3D objects, and put all of these combined dataset as CSV, png, and JSON files into the folder.
In order to use Colibri to generate screenshots as it went through each iterations, we need to use the Img Setting
component. The Img Setting
component has options for setting the resolution of screenshot, as well as which view these screenshots are taken.
There are several Spectacles components that can be used to generate Spectacles JSON. In the screenshot below, it is using a Spectacles_MeshColoredVerticies
component and a Spectacles_Line component
to export a Rhino mesh object with color and render its edges.