Skip to main content
added tags, clarifyed question
Source Link
David
  • 49.7k
  • 40
  • 162
  • 318

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?

How can in 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: 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

How can I fix this?

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?

How tocan in 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: 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

How can I fix this?

How to properly set up context in plugins?

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: 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

How can in 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: 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

How can I fix this?

Post Closed as "off topic" by ideasman42, zeffii, iKlsR, CharlesL, Daniel

How to properly set up context in plugins?

importing Digital Terrain Models using a python plugin

def register():
    bpy.utils.register_class(DTM) <br/>
    bpy.types.INFO_MT_mesh_add.append(add_to_menu)<br/>

iI get the following.

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

How to properly set up context in plugins?

importing Digital Terrain Models using a python plugin

def register():
    bpy.utils.register_class(DTM) <br/>
    bpy.types.INFO_MT_mesh_add.append(add_to_menu)<br/>

i get the following.

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

How to properly set up context in plugins?

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: 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
Loading
Source Link
ogeid
  • 913
  • 2
  • 8
  • 14
Loading