getTranslucency not attribute of PbrTree, impossible to import figure

Issue #584 resolved
Viktor Cerny created an issue

A search for translucency didn’t show up any open issues so i hope this is actually fresh news.

The newest version i downloaded (27-06-21) doesn’t let me import any figures anymore.

In the console this error message shows up:

Parsing data
Preprocessing...
Fitting objects with dbz file...
Zero verts: Dicktator Shell
Building objects...
Python: Traceback (most recent call last):
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\error.py", line 247, in execute
    self.run(context)
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\main.py", line 122, in run
    self.loadDazFile(filepath, context)
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\main.py", line 201, in loadDazFile
    asset.build(context)
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\cycles.py", line 81, in build
    self.tree.build()
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\cycles.py", line 345, in build
    self.buildLayer("")
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\pbr.py", line 61, in buildLayer
    self.buildPBRNode()
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\pbr.py", line 138, in buildPBRNode
    self.buildSSS()
  File "C:\Users\cerny\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ac20be4a3ce4\pbr.py", line 220, in buildSSS
    color,coltex = self.getTranslucency()
AttributeError: 'PbrTree' object has no attribute 'getTranslucency'

This error shows up in Blender Versions 2.93.1, 2.92 and 2.91.2

I also tested this with figures that i was able to previously import just to make sure its the new addon-version.

The error shows up with both bsdf and principled options for materials.

Also i’m running it on Windows 10 and Daz was 4.15.

If you guys need more info just say it ^^

Comments (4)

  1. engetudouiti

    I now test with G3 and G8 custom mat (only use iray uber ), but did not see this error with recent beta. (test with volume without volume)

    you may see add on built number, in this add on tab set up.

    it should be. 1.6.0.0445, At current I only test with 2.93 (new LTS) and load scene which I exported duf with dbz last week.

    Can you tell build number, and your global import option volume setting? as default it should load volume shader (active) for any skin. in global setting you can change it with recent version.

    And if you describe about daz studio mat, (eg you use iray mat or vendror original shader etc) and figure generation detail , it may help Thomas I suppose.

  2. Thomas Larsson repo owner

    Fixed in last commit. It was my fault; I didn’t test the principled method after making changes to translucency.

  3. Viktor Cerny reporter

    Alright with the newest version it all works smoothly again. Thanks Thomas for the quick fix. My old version was .0439 but with the new .0447 it all works perfectly. ^^

  4. Log in to comment