Blog > How To

3 Reasons Why Your Grasshopper Definitions Should Be Clean & Documented

Posted by ShapeDiver | October 11, 2021

3 Reasons Why Your Grasshopper Definitions Should Be Clean & Documented
Download this FREE Grasshopper Template!


Grasshopper definitions can become messy and difficult to understand, as they can quickly go from few components to hundreds of them. In this video tutorial, Edwin Hernandez, Lead Computational Designer at ShapeDiver, shares " 3 Reasons Why Your Grasshopper Definitions Should Be Clean & Documented! "

1. Future-Proof Your Work

This simply means that when we look back at the duplicate grasshopper files, we can understand, in an instant, what was created and how it was created. And for this to be achieved, the ShapeDiver team has created a template here . This template includes a convenient list of elements that help in organizing your grasshopper definition quickly and easily.

These elements include "Parameters," which mainly control the entire Grasshopper script. Primary groups, Inputs, and outputs also are classified as elements in the template.

These elements include "Parameters," which mainly control the entire Grasshopper script. Primary groups, Inputs, and outputs also are classified as elements in the template.

Local testing suggests the components are currently unsupported by ShapeDiver and need to be deleted later on before uploading. Lastly, "Ready to Organize" and "In Progress "elements help in the definition stage of a particular script. Here we have an example file organized using the different elements present in the template.

2. Debug, Edit, Extend


Modularizing your scripts and dividing them into smaller modular groups helps quickly iron out potential bugs without more significant impact to the overall larger definition. By working and dividing the more extensive definition into smaller sub-groups, we can easily reuse, move around, easily extend them or find the bug and focus our efforts on fixing it in that particular independent smaller group.


3. Collaborate & Receive Support!

If you work in teams, the last thing you want is your team to spend hours just understanding what you intended to do with the definition. Naming and, if needed, providing appropriate subtitles to groups and subgroups making it easier to locate and find things quickly.

Furthermore, color coding components are crucial to impart greater understanding to the overall script. Blue coded are inputs, and the green coded ones are outputs. Greater understanding regarding color coding can be looked up in the template file.

Bottom Line

We hope that these three reasons motivate you to keep your Grasshopper definitions clean and make it possible for you to document them easily. This will help your peers and help thousands of users when you decide to host your Grasshopper file online on ShapeDiver.

How do you keep your definitions clean and documented? Let us know by tagging us on Twitter or Instagram !


<< Do you have any questions or comments? Make sure to let us know via our Forum . Our development team is ready to provide cost-free assistance and troubleshooting! If you need to upgrade your account and increase your computation time, head to our website and reach out to us via our contact form.>>

487+ SaaS marketers are signed up

Don't miss out on the latest tips, tools, and tactics on converting visitors to paid customers.

Popular Posts