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

RGB KeyError #41

Open
AstroWildcat opened this issue Apr 6, 2022 · 0 comments
Open

RGB KeyError #41

AstroWildcat opened this issue Apr 6, 2022 · 0 comments

Comments

@AstroWildcat
Copy link

AstroWildcat commented Apr 6, 2022

Whenever I click on the "Generate Material List" button, I get the following error:

Python: Traceback (most recent call last):
File "C:\Users\Wildcat\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\material-combiner-addon-master\operators\ui\combine_list.py", line 26, in execute
mat_dict = sort_materials(get_materials(ob))
File "C:\Users\Wildcat\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\material-combiner-addon-master\utils\materials.py", line 65, in sort_materials
mat_dict[(path, get_diffuse(mat) if mat.smc_diffuse else None)].append(mat)
File "C:\Users\Wildcat\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\material-combiner-addon-master\utils\materials.py", line 88, in get_diffuse
return rgb_to_255_scale(mat.node_tree.nodes['RGB'].outputs[0].default_value[:])
KeyError: 'bpy_prop_collection[key]: key "RGB" not found'

location: :-1

Is there anything that can be done about this?

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

1 participant