From the course: Grasshopper and Rhino: Python Scripting
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Animating renders
From the course: Grasshopper and Rhino: Python Scripting
Animating renders
- [Instructor] Great, so we have our file path, lets start rendering. We should start by checking if the go input on the component is true, which we can do with an if statement, so if go, and if go is true, then we want to hit render. To do that, we need to basically run a command in Rhino, which we can do through the RhinoScript syntax library. The command function within this library, is a way to run commands, as we would in the command line in Rhino. This function is simply, Command, and then as the parameter we use a string, which is the command we would use in Rhino. So lets write Render and close parenthesis. We can prefix this command with an underscore. This will ensure that the English version of the command runs, in case different languages change the command name. So lets put underscore in front of R, perfect. So this function will run the render command in Rhino. If we were to run this command in Rhino, the Render window would open up, which will also happen when we run…
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.
Contents
-
-
-
-
-
-
(Locked)
Evaluating surfaces9m 45s
-
(Locked)
Creating panels5m 13s
-
(Locked)
Splitting11m 35s
-
(Locked)
Sorting8m 49s
-
(Locked)
Attractors10m 2s
-
(Locked)
Transforming11m 49s
-
(Locked)
Lofting9m 46s
-
(Locked)
Analysis12m 35s
-
(Locked)
Accessing the Rhino document2m 33s
-
(Locked)
Baking form13m 56s
-
(Locked)
Adding text9m 3s
-
(Locked)
Animating form6m 7s
-
(Locked)
Animating renders8m 22s
-
(Locked)
-