How can inI properly set up context in plugins?
I am importing Digital Terrain Models using a python plugin.
def register():
bpy.utils.register_class(DTM)
bpy.types.INFO_MT_mesh_add.append(add_to_menu)
I get the following error.
Error: Python script fail, look in the console for now...
C_dict, C_exec, C_undo = BPyOpsSubModOp._parse_args(args)
File "C:\Program Files\Blender Foundation\Blender\2.67\scripts\modules\bpy\ops.py", line 142, in _parse_args
raise ValueError("1-3 args execution context is supported")
ValueError: 1-3 args execution context is supported
C_dict, C_exec, C_undo = BPyOpsSubModOp._parse_args(args) File "C:\Program Files\Blender Foundation\Blender\2.67\scripts\modules\bpy\ops.py", line 142, in _parse_args raise ValueError("1-3 args execution context is supported") ValueError: 1-3 args execution context is supported
How can I fix this?