install Blender Modules

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
marcorexo
Posts: 2
Joined: Mon Oct 21, 2013 4:09 pm

install Blender Modules

Post by marcorexo » Mon Oct 21, 2013 4:17 pm

Hello,

I'm learning how to using Python scripting to build scenes etc.

Importing the following module does not work:

from Blender import Scene

The error message I get is: 'No Module named 'Blender'

Python version: 3.3 (built into Blender)
Blender version: 2.68a
Python version installed on Windows PC: 2.7.3 (is this the problem?)

Thanks for your help.

stiv
Posts: 3645
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Mon Oct 21, 2013 6:03 pm

Code: Select all

from Blender import Scene 
That is an import from the old 2.49 version of Blender.

Your choice are either switch versions of Blender or switch to the new BPy API.

marcorexo
Posts: 2
Joined: Mon Oct 21, 2013 4:09 pm

Post by marcorexo » Tue Oct 22, 2013 12:38 am

stiv wrote:

Code: Select all

from Blender import Scene 
That is an import from the old 2.49 version of Blender.

Your choice are either switch versions of Blender or switch to the new BPy API.

Thank you for taking the time to help me with this - much appreciated.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests