Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender 4.0 needs your help! #400

Open
Zhong5213 opened this issue Mar 22, 2024 · 2 comments
Open

Blender 4.0 needs your help! #400

Zhong5213 opened this issue Mar 22, 2024 · 2 comments

Comments

@Zhong5213
Copy link

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
Copy link
Author

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: [email protected] or [email protected](china mainland). What your help is of great importance to me!

@Zjuhui
Copy link

Zjuhui commented Sep 23, 2024

same problem, do you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants