Fixing Blender to import FBX

Fixing Blender to import FBX

There has been a weird problem with Blender for several years now regarding importing FBX files, even with the newest version (4.1). For some FBX files, especially those where meshes are simultaneously skinned to the armature and part of the armature hierarchy, Blender throws an error.

So, the thing is in the import_fbx.py file which is stored in:

C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\io_scene_fbx\
C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_scene_fbx\

More specifically, in this function (it could be on a different line depending on the Blender version):

def find_armature_bones(self, armature):
    for child in self.children:
        if child.is_bone:
            child.armature = armature
            child.find_armature_bones(armature)

You need to change it to (just remove one tabulation step from the last line):

def find_armature_bones(self, armature):
    for child in self.children:
        if child.is_bone:
            child.armature = armature
        child.find_armature_bones(armature)

And importing will correctly work after blender restart.

I’m attaching corrected files just in case:

p.s.: it was discovered by Jed Lang and described here.

17 thoughts on “Fixing Blender to import FBX”

  1. Тосик. Будь добр – ответь на вопрос: – в некоторых играх не отображаются модели. Почему?

  2. привет, как это не отображается модель в играх? может слабая видеокарта. но тогда игра вообще не должна запускаться

  3. Tosyk, привет! Ты жив?)
    Перезалей пожалуйста SPD Unpacker (для архивов Soul Calibur IV), ссылки мертвы. Спасибо заранее)

  4. Pingback: vardenafil 10 mg
  5. Getting an FBX out of Blender and into another engine is one of those jobs where the fix is almost never the one you first suspect – it is usually a scale or axis setting buried two menus deep rather than anything wrong with the model itself. That kind of patient, methodical troubleshooting is exactly what a good puzzle asks for too: with something like meowdoku.online, progress comes from checking your assumptions one at a time rather than from guessing.

Leave a Reply

Your email address will not be published. Required fields are marked *