I purchased a book that I am trying to follow along with, however it is a bit dated. I know that Blender2.56 is built entirely on python3.1. Here is the script I am trying to run in the blender python console:
Code: Select all
import Blender
from Blender import Scene, Text3d, Window
hello = Text3d.New("HelloWorld")
hello.setText("Hello World")
scn = Scene.GetCurrent()
ob = scn.objects.new(hello)
Window.RedrawAll()
Code: Select all
Traceback (most recent call last):
File "Text.002.py", line 3, in <module>
ImportError: No module named Blender
location:<unknown location>:-1
Python script fail, look in the console for now...
Any help on this would be greatly appreciated. I am very eager to start coding, however I know its good that I am going through this so I know what goes on under the hood!!
Best Regards,
thru2trot