Hello all,
Last week, I co-ran a set of Grasshopper2 workshops for the AEC Tech Conference in NYC. The afternoon session was focused on the development of G2 plugins. I published a simple Visual Studio project template for the participants to use.
- Download Visual Studio Grasshopper2 Plugin Project Template
- Download C# Component Class Item Template
- Source Code Link: G2 template repo on Bitbucket
To install:
- Download the template archives above (.zip)
- Place the ZIP files in your Visual Studio template locations (do not unzip!)
- Projects:
%USERPROFILE%\Documents\Visual Studio [VERSION]\Templates\ProjectTemplates - Items:
%USERPROFILE%\Documents\Visual Studio [VERSION]\Templates\ItemTemplates
- Projects:
- Start Visual Studio and choose to create a new project, search for the Grasshopper2 template.
These two templates are for making basic Grasshopper2 component nodes and will provide some guidance on:
- Registering your plugin information
- Defining a component class with inputs/outputs/processes
- Debugging configurations for Rhino 8 and 9
Very basic but hopefully can help orient others to coding new plugins for G2! If you have ideas or want to extend the project, feel free to fork and submit pull requests to the project.
(Note: Grasshopper2 is still in alpha so a lot is still subject to change.. thanks to David for all of his amazing work on this)
Cheers!
-Nate