Fbx Import Error in Blender 3.1.2 #97673

Open
opened 2022-04-28 07:48:27 +02:00 by Sergei · 8 comments

System Information
Operating system: Win11
Graphics card: GeForce 3600

Blender Version
Broken: 3.1.2, 2.93.7
Worked: 2.8

Short description of error

Import Fbx with animaton gives an error

newton_export_mixamo.fbx

Exact steps for others to reproduce the error

Skeleton hierarchy inside the fbx has a FbxSkeleton::EType::eRoot object type for the root bone and hips bone
And it looks like when the type of the bone is not catched up in the importer, then a None key in the armature_setup dictionary is kept
A quick fix to the issue are modifying these lines

import_fbx.py line 2303
replaced with

if mesh is None:continue
                if not (self in mesh.armature_setup):
                    (mmat, amat) = mesh.armature_setup[None]
                else:
                    (mmat, amat) = mesh.armature_setup[self]
**System Information** Operating system: Win11 Graphics card: GeForce 3600 **Blender Version** Broken: 3.1.2, 2.93.7 Worked: 2.8 **Short description of error** Import Fbx with animaton gives an error [newton_export_mixamo.fbx](https://archive.blender.org/developer/F13155491/newton_export_mixamo.fbx) **Exact steps for others to reproduce the error** Skeleton hierarchy inside the fbx has a FbxSkeleton::EType::eRoot object type for the root bone and hips bone And it looks like when the type of the bone is not catched up in the importer, then a None key in the armature_setup dictionary is kept A quick fix to the issue are modifying these lines import_fbx.py line 2303 replaced with ``` if mesh is None:continue if not (self in mesh.armature_setup): (mmat, amat) = mesh.armature_setup[None] else: (mmat, amat) = mesh.armature_setup[self] ```
Author

Added subscriber: @Neill3d

Added subscriber: @Neill3d

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Can you upload sample .blend file so we can reproduce?

Can you upload sample .blend file so we can reproduce?
Author

sure, here is a sample fbx file that gives an error on import - https://drive.google.com/file/d/19L10cQz-QuO_4mUMkJ_Jal6j8_UDkNWW/view?usp=sharing

sure, here is a sample fbx file that gives an error on import - https://drive.google.com/file/d/19L10cQz-QuO_4mUMkJ_Jal6j8_UDkNWW/view?usp=sharing

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Added subscriber: @mont29

Added subscriber: @mont29

OK.... think this is a manifestation of the need for a serious refresh of how we handle armatures in our importer... Was checking FBX official API doc, they now give a bit more info about how an skeletton is supposed to be built in FBX, we need to update our code for that...

This goes beyond the mere bugfix level though, so will change to TODO.

OK.... think this is a manifestation of the need for a serious refresh of how we handle armatures in our importer... Was checking FBX official API doc, they now give a bit more info about how an skeletton is supposed to be built in FBX, we need to update our code for that... This goes beyond the mere bugfix level though, so will change to TODO.
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#97673
No description provided.