[Bf-committers] SystemError when using simple mesh commands in scripts started from the command line...
Dietrich Bollmann
diresu at web.de
Fri Nov 6 15:10:55 CET 2009
Hi,
The following simple script doesn't work when used from the command
line:
---
import bpy
bpy.ops.mesh.primitive_cube_add()
---
Here the error message:
---
blender -P /tmp/cube.py
found bundled
python: /home/dietrich/blendev/bazaar/blender/working/trunk/install/linux2/.blender/python
Traceback (most recent call last):
File "/tmp/cube.py", line 2, in <module>
bpy.ops.mesh.primitive_cube_add()
File
"/home/dietrich/blendev/bazaar/blender/working/trunk/blender/release/scripts/modules/bpy_ops.py", line 172, in __call__
return op_call(self.idname(), C_dict, kw)
SystemError: bpy.__ops__.call: operator poll() function failed, context
is incorrect
*bpy stats* - tot exec: 78, tot run: 0.0132sec, average run:
0.000170sec, tot usage 0.5393%
Blender quit
---
Should I file a bug report - or is this error caused by myself
misunderstanding the command?
Regards, Dietrich
More information about the Bf-committers
mailing list