rgsouthall / laser_slicer

Laser slicer script for Blender 2.9
GNU General Public License v2.0
100 stars 12 forks source link

I can't slice complex object - Operator bpy.ops.object.mode_set.poll() Context missing active object #6

Open Stanislav1912 opened 1 year ago

Stanislav1912 commented 1 year ago

Hello! I can't slice complex object, only a single cube. All modificators are applied. File is saved. Trying to slice in an object mode. Blender 4.0 Here's an error message: Python: Traceback (most recent call last): File "K:\Program Files (x86)\blender-4.0.0-windows-x64\4.0\scripts\addons\laser_slicer-master\__init__.py", line 319, in execute slicer(context.scene.slicer_settings) File "K:\Program Files (x86)\blender-4.0.0-windows-x64\4.0\scripts\addons\laser_slicer-master\__init__.py", line 83, in slicer bpy.ops.object.mode_set(mode = 'EDIT') File "K:\Program Files (x86)\blender-4.0.0-windows-x64\4.0\scripts\modules\bpy\ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) RuntimeError: Operator bpy.ops.object.mode_set.poll() Context missing active object image image image

rgsouthall commented 1 year ago

Do you have an object selected?

Stanislav1912 commented 1 year ago

Do you have an object selected?

Sure! That was first thing that I thought about (missing active object)

Stanislav1912 commented 1 year ago

Do you have an object selected?

I figured it to work by appending the desired object to a new blend file, it worked, but I can't guess why.