cant export my fbx file #104629

Closed
opened 2023-05-22 21:15:35 +02:00 by Mujtaba-Zahid · 3 comments

cant export my fbx file

cant export my fbx file
Author

Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx_init_.py", line 636, in execute
return export_fbx_bin.save(self, context, **keywords)
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3223, in save
ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3115, in save_single
fbx_objects_elements(root, scene_data)
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2914, in fbx_objects_elements
fbx_data_mesh_elements(objects, me_obj, scene_data, done_meshes)
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1162, in fbx_data_mesh_elements
elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx)))
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\fbx_utils.py", line 494, in elem_data_single_int32_array
return _elem_data_single(elem, name, value, "add_int32_array")
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\fbx_utils.py", line 441, in _elem_data_single
getattr(sub_elem, func_name)(value)
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\encode_bin.py", line 143, in add_int32_array
data = array.array(data_types.ARRAY_INT32, data)
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1162, in
elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx)))
KeyError: ((nan, 1.0), 84749)

Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\__init__.py", line 636, in execute return export_fbx_bin.save(self, context, **keywords) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3223, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3115, in save_single fbx_objects_elements(root, scene_data) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2914, in fbx_objects_elements fbx_data_mesh_elements(objects, me_obj, scene_data, done_meshes) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1162, in fbx_data_mesh_elements elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx))) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\fbx_utils.py", line 494, in elem_data_single_int32_array return _elem_data_single(elem, name, value, "add_int32_array") File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\fbx_utils.py", line 441, in _elem_data_single getattr(sub_elem, func_name)(value) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\encode_bin.py", line 143, in add_int32_array data = array.array(data_types.ARRAY_INT32, data) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1162, in <genexpr> elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx))) KeyError: ((nan, 1.0), 84749)
Pratik Borhade changed title from Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\__init__.py", line 636, in execute return export_fbx_bin.save(self, context, **keywords) File "C:\Program Files\Blende to cant export my fbx file 2023-05-23 15:57:04 +02:00
Member

Hi, thanks for the report. From traceback this looks similar to blender/blender#102783

Very likely the mesh is corrupted, run Mesh.validate see if that fixes the problem.

Hi, thanks for the report. From traceback this looks similar to https://projects.blender.org/blender/blender/issues/102783 Very likely the mesh is corrupted, run [Mesh.validate](https://docs.blender.org/api/master/bpy.types.Mesh.html#bpy.types.Mesh.validate) see if that fixes the problem.
Blender Bot added the
Status
Archived
label 2023-05-23 15:59:37 +02:00
Author

how to run mesh.validate

how to run mesh.validate
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104629
No description provided.