AttributeError: 'HairBSDFTree' object has no attribute 'material'

Issue #946 resolved
goodwillsoft created an issue

Blender 2.93 and 3.2:

On importing any Scene with Hair, newest plugin throws this Error:

Python: Traceback (most recent call last):
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\error.py", line 208, in execute
self.run(context)
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\main.py", line 725, in run
self.easyImport(context)
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\main.py", line 735, in easyImport
bpy.ops.daz.import_daz(
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\bpy\ops.py", line 132, in call
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: Python: Traceback (most recent call last):
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\error.py", line 208, in execute
self.run(context)
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\main.py", line 229, in run
self.loadDazFile(filepath, context)
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\main.py", line 155, in loadDazFile
asset.build(context)
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\cycles.py", line 86, in build
self.tree.build()
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\hair.py", line 1470, in build
self.buildLayer("")
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\hair.py", line 1585, in buildLayer
self.readColor(0.5)
File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-8051f7e1c378\hair.py", line 1535, in readColor
self.material.rna.diffuse_color[0:3] = root
AttributeError: 'HairBSDFTree' object has no attribute 'material'

location: C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\bpy\ops.py:132

location: <unknown location>:-1

Comments (2)

  1. Log in to comment