Diffeomorphic isn't working
For some reason every time I try to import a Daz file into Blender I get this error:
location: <unknown location>:-1
Python: Traceback (most recent call last):
File "C:\Users\[my name]\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\import_daz\error.py", line 245, in execute
self.prequel(context)
File "C:\Users\[my name]\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\import_daz\error.py", line 262, in prequel
bpy.ops.object.mode_set(mode='OBJECT')
File "F:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\bpy\ops.py", line 132, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.mode_set.poll() failed, context is incorrect
location: <unknown location>:-1
What does this even mean? Trying to Google for answers just gives me nothing/more confusion. Diffeomorphic worked just fine up until yesterday when I started getting this error.
I have the plugin installed right, I have the default paths loaded, I exported the file to Blender from Daz 4.16 the right way, but nothing. What happened? What went wrong?
Edit: Well... it works now. Not sure what happened. Still, I'd like to know what this error even means so I can avoid it in the future.
Comments
It is a python runtime error, not something you can avoid as a user. If you can provide the steps to reproduce the issue may be Thomas can fix it.
The similar errors have very slight chance to occur also for other Blender plugins, restarting Blender usually fixes them, not sure if it's related to the python API that it's not stable enough.