Python Script!!

Hi all! Hope you can help me with this (probably silly) question! It’s quite simple actually, just that the ‘import blender’ doesnt work. It says that there is no module named blender.Do i have to put some blender module in it or something? I would really appreciate help!

Thanks!

Its:


import Blender

not


import blender

capitalization matters.

WoW Thanks Forte! KUDOS! though i have another problem now… now it says that in blender, there’s no function such as Loc or somethinglike that. Btw, here’s the program:

import Blender
a=Blender.Object.Get(“Cube”)
print a
print a.name
print “location”, a.Loc


a.LocX

Rotation:
http://blenderartists.org/forum/showthread.php?t=113198

Scale:
http://blenderartists.org/forum/showthread.php?t=113197
I know this is a lot of code to throw at you for a beginer, but if you are just looking for syntax, this pasteall might help.
http://pasteall.org/176/python
Mainly: (rotation,scale, and location syntax)


    ob.RotX = sourceRotX
    ob.RotY = sourceRotY
    ob.RotZ = sourceRotZ
    ob.setLocation (sourceLocX, sourceLocY, sourceLocZ)
    ob.setSize (sourceScaleX, sourceScaleY, sourceScaleZ)

3D Text Along A Path:
http://blenderartists.org/forum/showthread.php?t=109681

Scanning Time:
http://blenderartists.org/forum/showthread.php?t=108709

Import OBJ file via Python:
http://blenderartists.org/forum/showthread.php?t=97444

Delete an object from the scene:
http://blenderartists.org/forum/showthread.php?t=97881

What the heck, here’s the API as well:
http://www.blender.org/documentation/246PythonDoc/