DAZ 4.22 breaks scene loading

Issue #1824 resolved
goodwillsoft created an issue

On DAZ 4.22 this error appears on every import:

Loading c:\folder\daz422test.duf
Parsing data
Preprocessing...
Fitting objects with dbz file...
Building objects...
Ignore <Instance Tonemapper%20Options-1 L:Tonemapper Options 0 N: Tonemapper Options P: None R: None>
Ignore <Instance Environment%20Options-1 L:Environment Options 0 N: Environment Options P: None R: None>
Traceback (most recent call last):
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 286, in run
    self.loadDazFile(filepath, context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 182, in loadDazFile
    inst.finalize(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\node.py", line 483, in finalize
    self.buildChannels(ob)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\camera.py", line 103, in buildChannels
    value = self.getChannelValue(channel, None)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\channels.py", line 150, in getChannelValue
    return (value[0] + value[1] + value[2])/3
TypeError: unsupported operand type(s) for /: 'str' and 'int'
Error: Python: Traceback (most recent call last):
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 286, in run
    self.loadDazFile(filepath, context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 182, in loadDazFile
    inst.finalize(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\node.py", line 483, in finalize
    self.buildChannels(ob)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\camera.py", line 103, in buildChannels
    value = self.getChannelValue(channeTraceback (most recent call last):
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 771, in run
    self.easyImport(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 780, in easyImport
    bpy.ops.daz.import_daz(
  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\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 286, in run
    self.loadDazFile(filepath, context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\main.py", line 182, in loadDazFile
    inst.finalize(context)
  File "C:\Users\x\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\node.py", line 483, in finalize
    self.buildChannels(ob)
  File "C:\Users\Wildfire\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\camera.py", line 103, in buildChannels
    value = self.getChannelValue(channel, None)
  File "C:\Users\Wildfire\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Diffeomorphic-import_daz-906a7f4312b3\channels.py", line 150, in getChannelValue
    return (value[0] + value[1] + value[2])/3
TypeError: unsupported operand type(s) for /: 'str' and 'int'
Location: C:\Program Files\Blender Foundation\blender-4.0\4.0\scripts\modules\bpy\ops.py:109

Comments (10)

  1. Alessandro Padovani

    You may want to provide a 4.22 duf file for Thomas to check. Personally I’m not going to install 4.22 until they fix it of the bugs.

  2. Thomas Larsson repo owner

    I downloaded DS 4.22 and saved G81F and Victoria 9, but I didn’t have any problems. Could you upload a file which triggers the error.

  3. goodwillsoft reporter

    Interestingly this error is in every import I make, even this basic new one… Sorry I forgot to upload the duf.

  4. Thomas Larsson repo owner

    Fixed in last commit. There was a problem with DS 4.22 cameras, but I never import cameras myself so I didn’t see the problem before.

  5. goodwillsoft reporter

    Thank you, this fixes it up to blender 4.0, but on 4.1 it throws an error. Should I create a new ticket or post the error here?

  6. Alessandro Padovani

    4.1 is currently in alpha thus not supported, Thomas needs at least a beta for a stable api

  7. Log in to comment