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,…
Author
Released
8/8/2018- 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
Duration
Views
Related Courses
-
Grasshopper Essential Training
with Chris Reilly6h 24m Beginner -
Learning Python
with Joe Marini2h 11m Beginner -
Grasshopper: Architectural Prototyping
with Walter Zesk2h 28m Intermediate
-
Introduction
-
Welcome1m 23s
-
What you should know2m 2s
-
Exercise files55s
-
-
1. Working with Python
-
Python component basics8m 50s
-
What is OOP?5m 50s
-
Rhinoscriptsyntax5m 57s
-
RhinoCommon7m 12s
-
-
2. Python Basics
-
Variables6m 23s
-
Numbers7m 36s
-
Strings9m 16s
-
Lists and tuples9m 25s
-
Comparing with operators6m 23s
-
Comparing Booleans8m 42s
-
For loop7m 52s
-
While loop8m 43s
-
Nested loops5m 38s
-
Defining custom functions9m 45s
-
-
3. Importing Modules and Libraries
-
Modules9m 57s
-
IronPython and Python4m 6s
-
Importing libraries12m 44s
-
Grasshopper library9m 44s
-
Grasshopper components7m 49s
-
Grasshopper Parallel7m 49s
-
Creating and saving modules8m 46s
-
-
4. Grasshopper Workflows
-
Evaluating surfaces9m 45s
-
Creating panels5m 13s
-
Splitting11m 35s
-
Sorting8m 49s
-
Attractors10m 2s
-
Transforming11m 49s
-
Lofting9m 46s
-
Analysis12m 35s
-
Accessing the Rhino document2m 33s
-
Baking form13m 56s
-
Adding text9m 3s
-
Animating form14m 29s
-
Animating renders8m 22s
-
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Adding text