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

Traceback error when attempting to merge a certain material #46

Open
Luxiram opened this issue Jul 5, 2022 · 6 comments
Open

Traceback error when attempting to merge a certain material #46

Luxiram opened this issue Jul 5, 2022 · 6 comments

Comments

@Luxiram
Copy link

Luxiram commented Jul 5, 2022

I'm trying to atlas all of my materials and one of the materials keeps getting this traceback error, preventing it from being merged with the other textures

Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\material-combiner-addon-master\extend_lists.py", line 18, in draw_item
mat_preview = item.mat.preview
AttributeError: 'NoneType' object has no attribute 'icon_id'

location: C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\material-combiner-addon-master\ui\main_menu.py:20

@2theMAXtheStairFax
Copy link

image
i get a similar error.

@Grim-es
Copy link
Owner

Grim-es commented Jul 14, 2022

image i get a similar error.

Hello, you might be used an unsupported shader. You can view the file utils/materials.py to see what shaders are supported or what node names should be

@Grim-es
Copy link
Owner

Grim-es commented Jul 14, 2022

Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\material-combiner-addon-master\extend_lists.py", line 18, in draw_item
mat_preview = item.mat.preview
AttributeError: 'NoneType' object has no attribute 'icon_id'

Should be fixed on latest update

@2theMAXtheStairFax
Copy link

i checked and mtoon is supported, i tried changing it all to principled but same error

@Susoy114514
Copy link

Keyerror: 'bpy_prop_collection[key]: key"Principled BSDF"not found'
Why I got this error when I using"Save Atlas to"

@Grim-es
Copy link
Owner

Grim-es commented Oct 12, 2023

Keyerror: 'bpy_prop_collection[key]: key"Principled BSDF"not found' Why I got this error when I using"Save Atlas to"

It appears that your Blender is not set to English, which results in a different name property on the shader node. Please change it to Principled BSDF for all materials and also update name of texture node that will be used in atlas process to Image Texture as well for all materials. Or switch to Diffuse BSDF shader and connect proper texture node to single input. For Diffuse BSDF texture node name is also required to be Image Texture.

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

4 participants