Eye and Occlusion materials messed up

Hi there,

I have a strange problem which I have been trying to pinpoint, but it’s hard because I get different results all the time.

I tested in:
Blender 5.0.1 with Addon version 2.4.3
Blender 5.1.2 with Addon version 2.4.1
Blender 5.1.2 with Addon version 2.4.4
Blender 5.2.1 with Addon version 2.4.4
Blender 5.2.1 with Addon version 2.4.0

When I import a custom character in Blender 5.2, the materials of the eyes are messed up.
The Std_Eye_Occlusion_R and _L materials are missing nodes, and are not transparent
The Std_Eye_R and _L materials are missing nodes, which makes them appear flat

It seems to be only a problem when

  • I use my custom skin (just body and head. The eyes are the same in all examples)
  • In Blender 5.2.1
  • addon 2.4.4 installed
  • Both when I use DataLink or Export/Import FBX by hand.

When I throw a different skin on the character, the eyes are fine in Blender 5.2.1
But in Older Blenders, with the older vesions of the addon installed, my custom skin is not causing problems with the eyes.

All Blenders show this error message on importing:

Python: Traceback (most recent call last):
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1719, in modal
self.run_build(context)
~~~~~~~~~~~~~~^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1623, in run_build
self.build_materials(context)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1333, in build_materials
process_object(chr_cache, obj, obj_cache, objects_processed,
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chr_json, processed_materials, processed_images)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 183, in process_object
process_material(chr_cache, chr_json, obj_cache, obj, mat, obj_json, processed_images)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 93, in process_material
bake.pack_shader_channels(chr_cache, mat_cache)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\bake.py”, line 1698, in pack_shader_channels
pack_default_shader(chr_cache, mat_cache, shader_node)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\bake.py”, line 1569, in pack_default_shader
pack_max_tex_size = int(prefs.pack_max_tex_size)
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘CC3ToolsAddonPreferences’ object has no attribute ‘pack_max_tex_size’. Did you mean: ‘use_max_tex_size’?

Blender 5.2.1 With Addon 2.4.4. Custom skin on the character


Blender 5.2.1 With Addon 2.4.4. Reallusion Character Bob skin on the character


Blender 5.2.1 With Addon 2.4.0. Custom skin on the character

Blender 5.0.1 With Addon 2.4.3. Custom skin on the character

Blender 5.1.2 With Addon 2.4.1. Custom skin on the character


Blender 5.1.2 With Addon 2.4.4. Custom skin on the character


I hope this makes sense to you and that you can solve it. I have not enough brain to comprehend this myself. :neutral_face:

Thanks!

With kind regards,
Jeroen

I tested some more and got a little bit more info now.
In Blender 5.2.1, addon versions 2.4.1 and 2.4.2 sometimes have the problem, sometimes not. Addon version 2.4.3 and 2.4.4 always have the problem.

Blender 5.2.1, addon version 2.4.1 first time:


Blender 5.2.1, addon version 2.4.1 2nd time:


Blender 5.2.1, addon version 2.4.2 first time:


Blender 5.2.1, addon version 2.4.2 2nd time:


Blender 5.2.1, addon version 2.4.3 every time:


Hope that helps!

That’s a bug in an obscure texture packing option.

Turn off these two options:

That should stop it.

Hey Victor,

Thank you for your fast reply.
I tried it right away, but unfortunately, it didn’t help.

Any other ideas?

what does the system console show?

Edit: Also, check the shader type on the head material of your custom skin in character creator: I have a feeling this is happening because your custom skin shader is set to Pbr or SSS.

1 Like

The console says:

FBX import of ‘Billy v17 SubD 0 Sliders 100pct Eigen vel geen helm en haar poging2.fbx’ took 642.27 ms
Traceback (most recent call last):
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1719, in modal
self.run_build(context)
~~~~~~~~~~~~~~^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1623, in run_build
self.build_materials(context)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1333, in build_materials
process_object(chr_cache, obj, obj_cache, objects_processed,
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chr_json, processed_materials, processed_images)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 183, in process_object
process_material(chr_cache, chr_json, obj_cache, obj, mat, obj_json, processed_images)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 93, in process_material
bake.pack_shader_channels(chr_cache, mat_cache)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\bake.py”, line 1698, in pack_shader_channels
pack_default_shader(chr_cache, mat_cache, shader_node)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\bake.py”, line 1569, in pack_default_shader
pack_max_tex_size = int(prefs.pack_max_tex_size)
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘CC3ToolsAddonPreferences’ object has no attribute ‘pack_max_tex_size’. Did you mean: ‘use_max_tex_size’?
01:41.359 bpy.rna | ERROR Python script error in CC3_OT_importer.modal
01:41.359 operator | ERROR Python: Traceback (most recent call last):
| File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1719, in modal
| self.run_build(context)
| ~~~~~~~~~~~~~~^^^^^^^^^
| File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1623, in run_build
| self.build_materials(context)
| ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
| File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 1333, in build_materials
| process_object(chr_cache, obj, obj_cache, objects_processed,
| ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| chr_json, processed_materials, processed_images)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 183, in process_object
| process_material(chr_cache, chr_json, obj_cache, obj, mat, obj_json, processed_images)
| ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\importer.py”, line 93, in process_material
| bake.pack_shader_channels(chr_cache, mat_cache)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
| File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\bake.py”, line 1698, in pack_shader_channels
| pack_default_shader(chr_cache, mat_cache, shader_node)
| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File “C:\Users\info\AppData\Roaming\Blender Foundation\Blender\5.2\scripts\addons\cc_blender_tools-2_4_1\bake.py”, line 1569, in pack_default_shader
| pack_max_tex_size = int(prefs.pack_max_tex_size)
| ^^^^^^^^^^^^^^^^^^^^^^^
| AttributeError: ‘CC3ToolsAddonPreferences’ object has no attribute ‘pack_max_tex_size’. Did you mean: ‘use_max_tex_size’?

Dude! You are an absolute genious!

I had indeed set the skin to PBR. I thought that was a good thing.

It is perfect now. And no errors.
Thank you very much!