Error importing the FBX #105267

Open
opened 2024-04-05 08:32:39 +02:00 by Muhammad-Zumar · 1 comment

I have an FBX file that I took from unity. It has a couple of keyframes on it. When I try to import it in blender 4.1, it shows me the following error

Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx_init_.py", line 209, in execute
if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 3498, in load
_(); del _
^^^
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 3495, in _
root_helper.link_hierarchy(fbx_tmpl, settings, scene)
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2986, in link_hierarchy
child.link_hierarchy(fbx_tmpl, settings, scene)
File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2942, in link_hierarchy
(mmat, amat) = mesh.armature_setup[self]

KeyError: None

Can someone explain why is it happening and how can I solve it?

**System Information**
Operating system: Windows 11
Graphics card: Nvidia GeForce GTX 1060 3GB

**Blender Version**
Broken: (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen)
Worked: (newest version of Blender that worked as expected)

**Short description of error**
Unable to import fbx correctly

**Exact steps for others to reproduce the error**
Based on the default startup or an attached .blend file (as simple as possible).

I have an FBX file that I took from unity. It has a couple of keyframes on it. When I try to import it in blender 4.1, it shows me the following error Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx_init_.py", line 209, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 3498, in load _(); del _ ^^^ File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 3495, in _ root_helper.link_hierarchy(fbx_tmpl, settings, scene) File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2986, in link_hierarchy child.link_hierarchy(fbx_tmpl, settings, scene) File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2942, in link_hierarchy (mmat, amat) = mesh.armature_setup[self] ~~~~~~~~~~~~~~~~~~~^^^^^^ KeyError: None Can someone explain why is it happening and how can I solve it? **System Information** Operating system: Windows 11 Graphics card: Nvidia GeForce GTX 1060 3GB **Blender Version** Broken: (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen) Worked: (newest version of Blender that worked as expected) **Short description of error** Unable to import fbx correctly **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible).
Muhammad-Zumar added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-04-05 08:32:39 +02:00
Member

Similar error to #104885 but I'm unsure if they're the same issue since this one is complaining about KeyError: None.

I think the issue here is that there is a bone (LimbNode) called root at the top of the hierarchy which then has an 'armature' (Root) called DUCK_ parented to it, and the FBX importer doesn't like that.

image

If I manually edit the attached FBX and make root the Root and make DUCK_ a LimbNode then the import succeeds, but decides to make root the Armature Object itself.

image

Similar error to #104885 but I'm unsure if they're the same issue since this one is complaining about `KeyError: None`. I think the issue here is that there is a bone (`LimbNode`) called `root` at the top of the hierarchy which then has an 'armature' (`Root`) called `DUCK_` parented to it, and the FBX importer doesn't like that. ![image](/attachments/59afa0a9-8146-4301-bd84-07d951880fe1) If I manually edit the attached FBX and make `root` the `Root` and make `DUCK_` a `LimbNode` then the import succeeds, but decides to make `root` the Armature Object itself. ![image](/attachments/66a5530e-d1e7-40df-8048-d478f7ab5631)
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#105267
No description provided.