Rhino can be accessed via Python by accessing the Rhinoscriptsyntax and RhinoCommon libraries. In this video, learn about the Rhinoscriptsyntax library by examining how Rhino objects are created and using Rhinoscriptsyntax functions.
- [Instructor] Now that we have an understanding…of what dot notation is,…let's have a look at how we can…use it to create objects using Python.…In a new Grasshopper file, let's go ahead and create…a new Python component by double-clicking the canvas…with the left mouse button, tapping Python, and enter.…Then go ahead and open up the Python component…by double-clicking it.…In an earlier video we discussed this default script…but not all in detail.…You'll notice on line eight, the words,…"import rhinoscriptsyntax as rs."…Let's talk about this in a little bit more detail.…
The keyword, import, allows us to import…what we call modules or libraries into our script,…to use all the classes,…structures and functions from within it.…This will then allow us to create objects…such as points, curves and spheres.…Think of this as a recipe book…for creating geometry or objects.…Rhinoscriptsyntax is unique in that it contains…only functions, not classes or structures.…And these functions send instructions to Rhino…to perform some action.…
- Python components
- Accessing the Rhino API
- Python programming basics
- Importing modules and libraries
- Grasshopper workflows
- Evaluating surfaces
- Creating and splitting surfaces
- Transforming geometry
- Baking geometry from Python into Rhino
- Adding text objects
- Exporting rendered frames for animation
Skill Level Intermediate
1. Working with Python
2. Python Basics
3. Importing Modules and Libraries
4. Grasshopper Workflows
Next steps3m 53s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.