ApplyModifierForObjectWithShapeKeys icon indicating copy to clipboard operation
ApplyModifierForObjectWithShapeKeys copied to clipboard

Getting RuntimeError "Contenxt is incorrect.". Facing this issue while applying the "triangulate" modifier.

Open Lovepreet94 opened this issue 1 year ago • 2 comments

Python: Traceback (most recent call last): File "C:\Users\Lavi\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ApplyModifierForObjectWithShapeKeys.py", line 260, in execute success, errorInfo = applyModifierForObjectWithShapeKeys(context, selectedModifiers, self.disable_armatures) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Lavi\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ApplyModifierForObjectWithShapeKeys.py", line 149, in applyModifierForObjectWithShapeKeys bpy.ops.object.shape_key_remove() File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\bpy\ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Operator bpy.ops.object.shape_key_remove.poll() failed, context is incorrect

Lovepreet94 avatar Jul 18 '24 14:07 Lovepreet94

I cannot reproduce this error on Blender 4.02, 4.1 and 4.2 .

przemir avatar Jul 19 '24 07:07 przemir

Resolved: My fault! I applied the shape key with the cursor outside the 3D viewport. Make sure you're in the 3D viewport when running the add-on.

Lovepreet94 avatar Jul 19 '24 07:07 Lovepreet94