IDE


Where to program?


Developers use an IDE (Integrated Development Environment) to write their programs. An IDE is a program that provides all the tools needed to write, compile, and debug a program.

Rhino8 has its own IDE called Script Editor. To open it run the following command in the terminal of Rhino8:

!_ScriptEditor


Let’s have a look now at the different parts of the Script Editor.

Rhino IDE UI


The Script Editor is divided into 8 parts, each one has a specific function, have a look at the image below:

Run a script


To run a script in the Script Editor you need to open a new directory where your scripts are and click on the Run button on the file you want to run.

An IDE can be intimidating at first but don’t worry, you will get used to it very quickly, it’s going to be your best friend.

🛠 Run your first script in the Script Editor. Download the following file in the folder of your choice and run it. You should see a message in the terminal of Rhino8 or in the Output window of the Script Editor (7) that says: Welcome to AR-327!.

🐍⬇️⬇️⬇️ Download the script to run here ⬇️⬇️⬇️🐍


Why an IDE?


Programming can be difficult. That’s why we use an IDE. It makes programming easier with many features, among the most important:

(a) Syntax highlighting: It highlights the different parts of the code with different colors. This makes it easier to read and understand the code.

(b) Intellisense: It suggests the different options available for each part of the code. This makes it easier to write code.

(c) many others..: such as auto-completion, code folding, code snippets, file explorer, etc.

You know all the necessary to start coding in Python. Let’s start with the basics.