From the course: Grasshopper and Rhino: Python Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

RhinoCommon

RhinoCommon

From the course: Grasshopper and Rhino: Python Scripting

Start my 1-month free trial

RhinoCommon

- [Instructor] RhinoCommon is another library which contains all the classes, structures and functions needed to work with Rhino. The advantage of using the RhinoCommon library is it gives us much more access to all the areas of Rhino that may not be accessible through the RhinoScriptSyntax library. In fact the RhinoScriptSyntax library operates by running actions using the RhinoCommon library. The cost of using the RhinoCommon library is it's a little bit more complex. Instead of using purely functions we can access classes and structures to create objects such as points, boxes, and spheres. Once we have created these objects we then get an object in return with it's own attributes and methods. Using these objects can be harder but the reward is greater as it provides more functionality. So let's have a look at how we can view the contents of the RhinoCommon library and create objects using classes and structures, using .notation in Python. You can see that I've got a new Grasshopper…

Contents