Key "Specular0" not found, on import character with BSDF or Extended Principled material method

Issue #2009 invalid
BoredBasmati created an issue

Whenever I try to import a character with the BSDF or Extended Principled material method I get this exception:

BoredBasmatiError: Python: Traceback (most recent call last):
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\main.py", line 287, in run
    self.loadDazFile(filepath, context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\main.py", line 153, in loadDazFile
    asset.build(context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 89, in build
    self.tree.build()
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 330, in build
    self.buildLayers()
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 343, in buildLayers
    self.buildLayer("")
  File "C:\UseTraceback (most recent call last):
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\main.py", line 758, in run
    self.easyImport(context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\main.py", line 767, in easyImport
    bpy.ops.daz.import_daz_manually(
  File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 109, in call
    ret = _op_call(self.idname_py(), kw)
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\main.py", line 287, in run
    self.loadDazFile(filepath, context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\main.py", line 153, in loadDazFile
    asset.build(context)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 89, in build
    self.tree.build()
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 330, in build
    self.buildLayers()
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 343, in buildLayers
    self.buildLayer("")
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\pbr.py", line 156, in buildLayer
    self.buildTopCoat(uvname)
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 1228, in buildTopCoat
    self.linkScalar(spec0tex, top, spec0, "Specular0")
  File "C:\Users\BoredBasmati\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\cycles.py", line 1987, in linkScalar
    node.inputs[slot].default_value = add+factor
KeyError: 'bpy_prop_collection[key]: key "Specular0" not found'
Location: C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py:109

This bug actually started a while ago, multiple months, but I only report it now.

This issue can be found on every character I’ve tried to import so far.

Comments (8)

  1. Alessandro Padovani

    Please update to the last 1.7.4 commit to get the recent fixes, especially for G9 and blender 4.

  2. Alessandro Padovani

    Then I can’t reproduce the issue, also it works fine for other users there isn’t any bug of this type reported so far. I guess this is on your side, but may be Thomas can work around it at least catching the error to avoid the crash.

    Unless you have specific steps, or this is limited to a specific figure.

  3. BoredBasmati reporter

    I fixed the issue by deleting the old .dbz file and regenerating it inside daz studio.

  4. Log in to comment