Running python script in Blender
blender, python
Solution
- Open a Text Editor view in Blender.
- Press Alt + O, or go to Text>Open Text Block and open the .py file
- Then simply press Run script :D
P.s. Instead of opening a file in step 2, you can also hit the "+ New" button and create a new script instead.
Note : In newer versions the Run Script button label has been replaced with a Play icon :
Problem
I installed Blender 2.6 and I'm trying to run a script called drawcar.py (Which uses PyOpenGL) I looked around the documentation for importing a script and could only access Blender's python console. How do I run drawcar.py from the Linux terminal with Blender?