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.

Adding text

Adding text

From the course: Grasshopper and Rhino: Python Scripting

Start my 1-month free trial

Adding text

- [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…

Contents