KK-Blender-Porter-Pack icon indicating copy to clipboard operation
KK-Blender-Porter-Pack copied to clipboard

V6: Error when baking material templates

Open nizhuan-jjr opened this issue 2 years ago • 2 comments

Traceback (most recent call last): File "C:\Users\pkopk\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\KK-Blender-Porter-Pack-V6-0-0\exporting\bakematerials.py", line 439, in execute camera = setup_camera() File "C:\Users\pkopk\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\KK-Blender-Porter-Pack-V6-0-0\exporting\bakematerials.py", line 64, in setup_camera bpy.data.worlds[0].node_tree.nodes['Background'].inputs[0].default_value = (0,0,0,1) IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

After clicking the Prep for target application, the objects are not merged into one(not sure if this is ok). 0 Then I clicked Bake material templates and I only want light version, the error occurs. 1 My scene has no world or background. 2 Even though I setup a world for it, I still get this error. 3

nizhuan-jjr avatar Sep 19 '22 08:09 nizhuan-jjr

OK, I guess it's related to the language setting. I changed to English interface and setup a new world with surface node as 'Background', then the baking worked.

nizhuan-jjr avatar Sep 19 '22 08:09 nizhuan-jjr

Thanks, the language shouldn't matter now and it will create a new world if it doesn't find one

FlailingFog avatar Sep 23 '22 01:09 FlailingFog