Envoroument import error

Issue #709 resolved
Noname created an issue

Hello,

Blender ver.: 2.93.5 RC
Blender ver.: 3.0.0 alpha

plugin ver.: 1.6.1.0593

When importing with Global Option World set to anything besides Never error happens:

Python: Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\error.py", line 208, in execute
    self.run(context)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\main.py", line 124, in run
    LS.render.build(context)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\render.py", line 86, in build
    self.world.build(context)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\render.py", line 142, in build
    self.tree.build()
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\render.py", line 190, in build
    envnode,socket = self.buildEnvmap(envmap)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\render.py", line 228, in buildEnvmap
    img = self.getImage(envmap, "NONE")
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\render.py", line 301, in getImage
    img = asset.buildCycles(colorSpace)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\material.py", line 814, in buildCycles
    img.colorspace_settings.name = "Non-Color"
AttributeError: 'NoneType' object has no attribute 'colorspace_settings'

location: <unknown location>:-1

Same error in both Blender versions tested.

Re - exported using from Daz using latest version of exporter.

Best regards and keep safe

Comments (2)

  1. Thomas Larsson repo owner

    It looks like the environment texture is not found for some reason. This shouldn’t lead to a crash anymore.

  2. Log in to comment