i'm on ubuntu maverick (10.10), blender 2.49b, Python 2.6.5 -- a total noob to this
I have "import bpy" at the top of my script. Some bpy methods and properties work for me (e.g., "bpy.data.objects["Cube"]" )
but any code I execute with
bpy.ops....
and
bpy.context....
leads to errors:
AttributeError: 'module' object has no attribute 'ops'
AttributeError: 'module' object has no attribute 'context'
What am I doing wrong??
TIA
You are trying to run new blender code on old blender.
You need the docs for the 2.49 API.
hint: import Blender as B is your friend.
hint: dir(some_module) will show you what is in it.