Error importing FBX file #104885

Open
opened 2023-09-14 08:35:06 +02:00 by Pratik Borhade · 2 comments
Member

System Information
Operating system: Windows-10-10.0.23541-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.61

Blender Version
Broken: version: 3.6.2, branch: blender-v3.6-release, commit date: 2023-08-16 16:43, hash: e53e55951e7a
Worked: (newest version of Blender that worked as expected)

Short description of error
Trying to import the attached FBX file (that import correctly in other software like Unity or the Windows 3D viewer), it seems to import correctly, but no animation data can be found in Blender. In addition, the following can be found in the System Console:

FBX version: 7200
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\__init__.py", line 207, in execute
    if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 3109, in load
    _(); del _
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 3106, in _
    root_helper.link_hierarchy(fbx_tmpl, settings, scene)
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 2597, in link_hierarchy
    child.link_hierarchy(fbx_tmpl, settings, scene)
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 2590, in link_hierarchy
    child_obj = child.link_hierarchy(fbx_tmpl, settings, scene)
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 2553, in link_hierarchy
    (mmat, amat) = mesh.armature_setup[self]
KeyError: MontyBIP☺Model

Exact steps for others to reproduce the error

  1. Open a new scene.
  2. Delete all objects.
  3. Import the attached FBX file.
  4. Check for animation or for actions. There is none.

Suit_Electric.FBX

Originally reported at: blender/blender#112358

**System Information** Operating system: Windows-10-10.0.23541-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.61 **Blender Version** Broken: version: 3.6.2, branch: blender-v3.6-release, commit date: 2023-08-16 16:43, hash: `e53e55951e7a` Worked: (newest version of Blender that worked as expected) **Short description of error** Trying to import the attached FBX file (that import correctly in other software like Unity or the Windows 3D viewer), it seems to import correctly, but no animation data can be found in Blender. In addition, the following can be found in the System Console: ``` FBX version: 7200 Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\__init__.py", line 207, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 3109, in load _(); del _ File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 3106, in _ root_helper.link_hierarchy(fbx_tmpl, settings, scene) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 2597, in link_hierarchy child.link_hierarchy(fbx_tmpl, settings, scene) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 2590, in link_hierarchy child_obj = child.link_hierarchy(fbx_tmpl, settings, scene) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\import_fbx.py", line 2553, in link_hierarchy (mmat, amat) = mesh.armature_setup[self] KeyError: MontyBIP☺Model ``` **Exact steps for others to reproduce the error** 1. Open a new scene. 2. Delete all objects. 3. Import the attached FBX file. 4. Check for animation or for actions. There is none. [Suit_Electric.FBX](https://projects.blender.org/attachments/1c81e62f-2b9b-40d7-a47d-c185ea4830b9) Originally reported at: https://projects.blender.org/blender/blender/issues/112358
Pratik Borhade added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-09-14 08:35:06 +02:00
Member

I'm not really sure what's going on in this file. It seems as if there are what would be equivalent to one main armature (a 'Root' node) with multiple child armatures ('Null' nodes).

If I force the code to continue where the error occurs (skipping adding an armature modifier to the mesh), some of the 'Null' nodes end up imported as bones in the main armature, e.g. Boy_CoM, but others import as Empties parented to bones, e.g. MontyBIP______GLOW.

These empties should be bones in some respect because meshes are rigged to them. If I modify the importer to consider 'Null' nodes to be bones instead of 'root bones', then they import as bones and the meshes get rigged to them.

The remaining issue then is that the bones in some of the 'child armatures' animate in the wrong directions, notably the chain of bones under Boy_ElectricPlyers_L.

I'm not really sure what's going on in this file. It seems as if there are what would be equivalent to one main armature (a `'Root'` node) with multiple child armatures (`'Null'` nodes). If I force the code to continue where the error occurs (skipping adding an armature modifier to the mesh), some of the `'Null'` nodes end up imported as bones in the main armature, e.g. `Boy_CoM`, but others import as Empties parented to bones, e.g. `MontyBIP______GLOW`. These empties should be bones in some respect because meshes are rigged to them. If I modify the importer to consider `'Null'` nodes to be bones instead of 'root bones', then they import as bones and the meshes get rigged to them. The remaining issue then is that the bones in some of the 'child armatures' animate in the wrong directions, notably the chain of bones under `Boy_ElectricPlyers_L`.

All I can add is that 1) the model works in Unity and Windows 3D viewer and 2) AFAIK the FBX was generated by package that accepts a mix of bones and other objects (as nulls or empties) as rigging sources.

All I can add is that 1) the model works in Unity and Windows 3D viewer and 2) AFAIK the FBX was generated by package that accepts a mix of bones and other objects (as nulls or empties) as rigging sources.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#104885
No description provided.