I try to do this:
bpy.ops.object.select_all()
bpy.ops.object.join()
in my script. It selects all the stuff like CtrlA but fails on join()
(CtrlJ) with the following error message:
Traceback (most recent call last): File "", line 1,
in File "C:\Program Files\Blender
Foundation\Blender\2.71\scripts\modules\bpy\ops.py", line 188, in
__ call __
ret = op_call(self.idname_py(), None, kw) RuntimeError: Operator bpy.ops.object.join.poll() failed, context is incorrect
the message is from console.
How can I make this work? CtrlA, CtrlJ actually works.