From the course: Grasshopper and Rhino: Python Scripting
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Modules
- [Instructor] As we have learned in an earlier video, Python provides built-in functions that we can use as needed within our Python scripts. We have also learned that we can import libraries such as RhinoCommon and use all the classes structs and functions, among other types contained within them. Python also offers built-in Python modules which contain classes, functions, and variables that we can us as needed. In the context of Python, modules simply refer to a Python file which contain these classes and functions. These modules allow us to bring in classes and functions for a variety of different uses such as using math functions, or working with CSV files, among many others. In Grasshopper, let's import one of these modules and use it within our script. I've gone ahead and I've placed three sliders, which are being input into three inputs on a Python component. These being amplitude, length, and frequency. Let's double click the Python component to open it up. As you can see…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.