specoolar/Blender-BakeLab2

Error baking any pass on complex material setup

Opened this issue · 0 comments

  • Blender Version: 2.93.0

I encountered this error while trying to bake a character that has multiple materials and Mix Shader nodes within, even though I was able to bake some of the materials simultaneouslyon on a cube. After a brief testing session I am guessing that some complex materials and / or a material limit are causing this bug, although it still seems kind of arbitrary to me.

Unsure if it helps but I always got black bakes before I found this addon and that is actually the reason I gave it a shot :).

Here, the traceback:

Python: Traceback (most recent call last):
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 875, in modal
    result = next(self.BakeCrt)
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 687, in Bake
    self.PrepareMaterials(context, obj, {obj}, map, bake_image)
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 540, in PrepareMaterials
    self.ungroup_nodes(mat.node_tree)
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 317, in ungroup_nodes
    self.extract_nodes_rc(
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 261, in extract_nodes_rc
    link_node = self.extract_nodes_rc(
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 261, in extract_nodes_rc
    link_node = self.extract_nodes_rc(
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 261, in extract_nodes_rc
    link_node = self.extract_nodes_rc(
  [Previous line repeated 1 more time]
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 239, in extract_nodes_rc
    node = self.copy_node(nodes, gr_node)
  File "C:\Users\sus\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 214, in copy_node
    dst_input.default_value = src_input.default_value
TypeError: bpy_struct: item.attr = val: NodeSocketFloat.default_value expected a float type, not bpy_prop_array

location: <unknown location>:-1