Accessing the RhinoCommon library allows us to not only bake geometry but also a variety of object types, including text. In this video, learn how to create and bake text objects to display useful information back to the user via the Rhino file.
- [Instructor] In a previous video,…we determined how many rays projected…from our Brep frames collided with surrounding context.…We then converted this into a string…indicating the percentage hit.…It would be useful to have this information displayed…when we bake our frames, as we did in the last video.…So let's have a look at how to add text to the document…by baking it along with the frames.…In this last video our Python script was used…to bake the frame geometry.…As you can see, I've turned the toggle to false,…and I've removed the geometry from Rhino,…so we can start fresh.…
The hit percent output from the component…is still outputting a string, which tells us…how many of the rays are intersecting surrounding context,…which is currently 31.5%.…Let's bake this text, and another text object,…which will describe the view angle,…along with the frames, so to do that let's start…by adding an input to the Python component,…and we'll call this viewAngle,…which will be a type of integer.…
And then, where we created the view angle slider earlier,…
- 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.