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

Animating renders

From the course: Grasshopper and Rhino: Python Scripting

Start my 1-month free trial

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…

Contents