top of page

015 – Organise your graph with data containers

Updated: May 16

Data Containers

Learn how you can use Grasshopper data containers to organise information in your graph. This helps to keep your graph clean and orderly. Data containers exist for primitive data types such as: booleans, integers, numbers and text.


Organising your Grasshopper graph using data containers provides several benefits. Firstly, it helps to keep your design data separate from the logic and geometry generation of the graph, making it easier to understand and maintain. Data containers also allow you to reuse information throughout your graph, reducing the amount of duplicated data and improving efficiency.


Additionally, data containers provide a way to easily manage and manipulate large amounts of data, making it easier to experiment with different scenarios and design options. By using data containers, you can create a more modular, organised, and scalable Grasshopper graph, improving the overall efficiency of your design process.


Prerequisite: Boolean toggle connected to 'boolean'. Number slider connected to 'integer'. Number slider connected to 'number'.


Steps:

Step 1: Connect a 'panel' and a 'text'. The most basic container is 'data' which can contain any type of data.

Step 1: Data Containers

Step 2: Connect 'data' to your primitive data type

Step 2: Data Containers

Step 3: Right click on the data container and change the label.

Step 3: Data Containers

Step 4: Place inputs, logic and outputs systematically from left to right. And use data containers to define the inputs and outputs.

Step 4: Data Containers

Note: Data containers also exist for geometry such as points, curves and meshes.

Note: Data Containers

Learn more

Read our previous blog post or sign up to our platform here to put your Grasshopper models online and share them.

9 views

Recent Posts

See All
bottom of page