meshport icon indicating copy to clipboard operation
meshport copied to clipboard

materials.py not working on Blender 4.x

Open rudzik8 opened this issue 10 months ago • 0 comments

image

KeyError: "bpy_prop_collection[key]: key "Specular" not found"

Apparently, they renamed it in 4.0. After a bit of googling I found this solution for IO PDX MESH, which turned out to be applicable here as well.

As a quick-fix, on line 50: prin.inputs["Specular IOR Level"].default_value = 0

After applying it, the script worked fine.

rudzik8 avatar Apr 14 '24 02:04 rudzik8