Create Rhino models using code
Rig1 is a plugin for Rhino that lets you create parametric, interactive, component-based models using code.
codeRig1 is a plugin for Rhino that lets you create parametric, interactive, component-based models using code.
A modern, developer-friendly plugin that makes 3D modeling in Rhino feel like building software.
Break complex models into composable components. Each piece is a simple C# class with clear inputs, outputs, and geometry.
Work in Visual Studio or VS Code with full autocomplete, syntax highlighting, debugging, refactoring, and AI agents. All the tools you already use.
Expose sliders, color pickers, dropdowns, and buttons directly in a Rhino panel. Tweak parameters interactively while you design.
Wire components together automatically. Rig resolves dependencies and configures the entire model tree for you.
Edit your C# code and see changes instantly in Rhino. No restart needed. Rig watches your source files and rebuilds on the fly.
See your full model in the Rhino document in real time, with every component, attribute, and transform updating live as you work.
There are three popular ways to build parametric models in Rhino today, and each one runs into walls as the model grows.
| Current approach | Drawbacks | How Rig addresses it |
|---|---|---|
| Record History | Edits outside a history-aware command silently break the chain, and the dependency graph is invisible. | Dependencies are declared in code, so the graph is explicit and always tracked. |
| Grasshopper | Diagrams get hard to understand and modify as they grow. | Models are plain code organized into reusable components that work with Git and code review. |
| Scripting | Scripts tend to be imperative and ad-hoc, with no shared structure or conventions to keep them maintainable. | Models follow a consistent, component-based structure that scales and stays maintainable. |
AI can already generate geometry and Grasshopper definitions directly, but those outputs inherit the same limitations as building them by hand: raw geometry comes out frozen, with no parameters to adjust, and AI-generated Grasshopper definitions can be hard for humans to understand.
A Rig model is just plain, component-based C#, so AI generates something you can actually work with: real classes with named inputs, an explicit dependency graph, and strongly-typed geometry that you can review, refactor, test, and keep editing, whether the next change comes from you or an agent.
Rig bridges visual modeling and code-driven logic for a seamless, interactive workflow.
Open your model project (just a C# project) in your favorite IDE and run it. Rig launches Rhino and loads your model automatically.
Visualize and interact with live geometry in Rhino while writing or modifying components in your IDE.
Save a .cs file and Rig rebuilds the project and reloads the assembly. All dependent components update automatically.
Adjust parameters with numeric up/downs, dropdowns, sliders, color pickers, and more. Changes trigger re-evaluation of dependent geometry in real time.
Save your .3dm model in Rhino as usual and save your source files in the IDE.
1. Rig is also a small shark found in coastal waters all around New Zealand.