powroupi / blender_mmd_tools

mmd_tools is a blender addon for importing Models and Motions of MikuMikuDance.
GNU General Public License v3.0
1.73k stars 278 forks source link

Blender 4.0 needs your help! #400

Open Zhong5213 opened 3 months ago

Zhong5213 commented 3 months ago

Upon importing a model using MMD Tools in Blender, the following error is encountered: Report: Error Traceback (most recent call last): File "D:\steam\steamapps\common\Blender\4.0\scripts\addons\mmd_tools\operators\fileio.py", line 163, in execute self._do_execute(context) File "D:\steam\steamapps\common\Blender\4.0\scripts\addons\mmd_tools\operators\fileio.py", line 182, in _do_execute importer_cls().execute( File "D:\steam\steamapps\common\Blender\4.0\scripts\addons\mmd_tools\core\pmx\importer.py", line 845, in execute self._importMaterials() File "D:\steam\steamapps\common\Blender\4.0\scripts\addons\mmd_tools\core\pmx\importer.py", line 557, in __importMaterials texture_slot = fnMat.create_texture(self._textureTable[i.texture]) File "D:\steam\steamapps\common\Blender\4.0\scripts\addons\mmd_tools\core\material.py", line 420, in create_texture texture = self._create_texture_node('mmd_base_tex', filepath, (-4, -1)) File "D:\steam\steamapps\common\Blender\4.0\scripts\addons\mmd_tools\core\material.py", line 508, in _create_texture_node self._update_shader_nodes() File "D:\steam\steamapps\common\Blender\4.0\scripts\addons\mmd_tools\core\material.py", line 666, in _update_shader_nodes if not node_shader.outputs['Shader'].is_linked: KeyError: 'bpy_prop_collection[key]: key "Shader" not found'

This error occurs during the material import process. It seems to be related to the absence of a "Shader" attribute in a material node.

I'm using Blender 4.0 and the latest version of MMD Tools. How can I resolve this issue? 屏幕截图 2024-03-22 223850

Zhong5213 commented 3 months ago

I am a chinese student and don't have much time to see my github everyday. If you can solve this problem, you can post the solution in my email: zhongqianjia37@gmail.com or zhongqianjia37@126.com(china mainland). What your help is of great importance to me!