How can I 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.
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?
self
andcontext
when calling an operator. Those first two argument positions are reserved for execution context. $\endgroup$