Page MenuHome

Error when importing FBX file if Texture is embeded
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Intel(R) Iris(TM) Pro Graphics 5200 Intel 4.3.0 - Build 20.19.15.4549

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2019-12-27 20:38, hash: rBc2a37867f21b
Worked: (optional)

Short description of error
The io_scene_fbx addon returns an error when trying to import a fbx file. Opening the same file with 2.81a is working fine. The error Only occurs with fbx file which have texture embed in it. Here is the TraceBack :

Traceback (most recent call last):
  File "c:\Tilapiatsu\05_portable_app\Blender_2.82\2.82\scripts\addons\io_scene_fbx\__init__.py", line 217, in execute
    if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
  File "c:\Tilapiatsu\05_portable_app\Blender_2.82\2.82\scripts\addons\io_scene_fbx\import_fbx.py", line 3153, in load
    _(); del _
  File "c:\Tilapiatsu\05_portable_app\Blender_2.82\2.82\scripts\addons\io_scene_fbx\import_fbx.py", line 3145, in _
    ma_wrap.alpha_texture.copy_from(ma_wrap.base_color_texture)
  File "c:\Tilapiatsu\05_portable_app\Blender_2.82\2.82\scripts\modules\bpy_extras\node_shader_utils.py", line 626, in copy_from
    self.image = tex.image
  File "c:\Tilapiatsu\05_portable_app\Blender_2.82\2.82\scripts\modules\bpy_extras\node_shader_utils.py", line 36, in wrapper
    return func(self, *args, **kwargs)
  File "c:\Tilapiatsu\05_portable_app\Blender_2.82\2.82\scripts\modules\bpy_extras\node_shader_utils.py", line 702, in image_set
    image.colorspace_settings.name = self.colorspace_name
TypeError: bpy_struct: item.attr = val: enum "Non-Color" not found in ('AppleP3 Filmic Log Encoding', 'AppleP3 sRGB OETF', 'BT.1886 EOTF', 'BT.1886 Filmic Log Encoding', 'Filmic Log Encoding', 'Linear', 'Non-Colour Data', 'sRGB OETF')

Exact steps for others to reproduce the error

  • Open Blender
  • Click on File - Import - FBX
  • Select the FBX on the browser
  • ERROR

You can use the provided fbx file to reproduce the issue

Thanks for your help

Event Timeline

Bastien Montagne (mont29) claimed this task.

You are most likely using an old/weird version of confing.ocio somehow, as you can check here current master does use proper Non-Color identifier for that setting…

Thanks for the report, but no bug here.

Thanks for your quick check Bastien. I've found where it came from actually . I had a Filmic Blender installed on my config, and it wasn't updated with the last naming for Non-Color.

Thanks again, an sorry for the time loss.

Laurent