Import error

Issue #521 resolved
garden created an issue

Current latest version (Diffeomorphic-import_daz-f228f33ac8b7)
Does not import my character, but shows these errors.

Python: Traceback (most recent call last):
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\error.py", line 247, in execute
    self.run(context)
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\main.py", line 122, in run
    self.loadDazFile(filepath, context)
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\main.py", line 201, in loadDazFile
    asset.build(context)
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 70, in build
    self.tree.build()
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 318, in build
    self.buildLayer("")
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 354, in buildLayer
    self.buildOverlay()
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 542, in buildOverlay
    wttex = self.raiseToPower(wttex, power, slot)
  File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 567, in raiseToPower
    self.links.new(tex.outputs[slot], node.inputs[0])
KeyError: 'bpy_prop_collection[key]: key "Alpha" not found'

location: <unknown location>:-1

I also have version 1.5.1.1076, it imports correctly, but in the log daz_importer_errors.txt
There is an error:

MISSING ASSETS:
  /scenes/vi_2811.duf

Maybe it has something to do with it.

Comments (4)

  1. garden reporter

    I tried importing another character and got exactly the same error, but there are no errors in 1.5.1.
    But some characters are imported correctly.

    Python: Traceback (most recent call last):
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\error.py", line 247, in execute
        self.run(context)
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\main.py", line 122, in run
        self.loadDazFile(filepath, context)
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\main.py", line 201, in loadDazFile
        asset.build(context)
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 70, in build
        self.tree.build()
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 318, in build
        self.buildLayer("")
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 354, in buildLayer
        self.buildOverlay()
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 542, in buildOverlay
        wttex = self.raiseToPower(wttex, power, slot)
      File "C:\Users\username\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\Diffeomorphic-import_daz-f228f33ac8b7\cycles.py", line 567, in raiseToPower
        self.links.new(tex.outputs[slot], node.inputs[0])
    KeyError: 'bpy_prop_collection[key]: key "Alpha" not found'
    
    location: <unknown location>:-1
    

  2. Thomas Larsson repo owner

    I don’t have any assets that produces this error, but I think I understand what is going on. The error should be gone now.

  3. Log in to comment