soupday / cc_blender_tools

Add-on for Blender, for importing and auto-setup of character creator 3 & 4 and iClone 7 & 8 character exports into Blender.
GNU General Public License v3.0
455 stars 82 forks source link

ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 2 items, not 0 #77

Closed truongvanvu0411 closed 1 year ago

truongvanvu0411 commented 2 years ago

I have import fbx from CC3 to Blender 3.1 issue as bellow, how can i fix that?

Python: Traceback (most recent call last): File "C:\Users\Acer\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\importer.py", line 732, in modal self.run_import(context) File "C:\Users\Acer\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\importer.py", line 646, in run_import self.import_character(warn) File "C:\Users\Acer\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\importer.py", line 532, in import_character bpy.ops.import_scene.fbx(filepath=self.filepath, directory=dir, use_anim=import_anim) File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\bpy\ops.py", line 132, in call ret = _op_call(self.idname_py(), None, kw) RuntimeError: Error: Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx__init__.py", line 220, in execute return import_fbx.load(self, context, filepath=self.filepath, **keywords) File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx\importfbx.py", line 2603, in load (); del _ File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx\importfbx.py", line 2602, in fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings) File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 1299, in blen_read_geom blen_read_geom_layer_uv(fbx_obj, mesh) File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 1064, in blen_read_geom_layer_uv blen_read_geom_array_mapped_polyloop( File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 987, in blen_read_geom_array_mapped_polyloop blen_read_geom_array_setattr(blen_read_geom_array_gen_indextodirect(fbx_layer_index, stride), File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 843, in blen_read_geom_array_setattr _process(blen_data, blen_attr, fbx_data, xform, item_size, blen_idx, fbx_idx) File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 838, in _process setattr(blen_data[blen_idx], blen_attr, fbx_data[fbx_idx:fbx_idx + item_size]) ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 2 items, not 0

location: C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\bpy\ops.py:132

location: :-1

soupday commented 2 years ago

Seen this error lots of times,

You wouldn't by any chance, be trying to import a character wearing the "Biker Vest"?

It has broken UV maps and crashes Blender. There's no way to fix inside Blender.

There's a version of that vest in the "DH Sample" character (Content Tab: Scene Project Template > Project > DH Sample) that does work with Blender

truongvanvu0411 commented 2 years ago

I got this. Thank you💛💛