Search Unity

Unity BlenderToFBX update

Discussion in 'Asset Importing & Exporting' started by LesserGatsby, Jul 5, 2020.

  1. LesserGatsby

    LesserGatsby

    Joined:
    Jun 28, 2013
    Posts:
    2
    Like many of you, I have also had issues with the blender importer. I figured it was best to go straight to the source with the fix.
    A coupe small changes to the BlenderToFBX.py script can fix pretty much all the import problems I was having.

    I updated it on my end, and this works well, hopefully one day it can be updated in Unity proper, but for now, Im including the file here in case any of you want to use it yourself.

    the script is located at {Path to Unity}\Editor\Data\Tools, you can either replace it with the one I included, or change it yourself.

    The changes are as follows:
    Adds these lines at the end of the import function call
    primary_bone_axis='-Z',
    secondary_bone_axis='X',
    apply_scale_options='FBX_SCALE_ALL'
    Changes the object types line to the following:
    object_types= {'ARMATURE','MESH','OTHER','EMPTY'},
     

    Attached Files:

  2. Bervt

    Bervt

    Joined:
    Jun 19, 2020
    Posts:
    13