Last updated: October 30, 2016
“The more things change, the more they stay the same.”
Yeah, I know… some dead-French guy said it first, but I remember it from the end of Escape from L.A.
Get over it.
Blenders FBX exported has gotten a lot better… and yet, it still adds the extra root bone.
This tutorial will show you what to change in order to fix this.
The file we will be going to edit
C:\Program Files\Blender Foundation\Blender\2.78\scripts\addons\io_scene_fbx\export_fbx_bin.py
Before you begin:
- Create a backup of the file.
- Get a decent text editor.
For Windows, I recommend Notepad++.
- Run your text editor in admin mode.
- Find the following:
elif ob_obj.type == 'EMPTY' or ob_obj.type == 'ARMATURE': empty_key = data_empties[ob_obj] connections.append((b"OO", get_fbx_uuid_from_key(empty_key), ob_obj.fbx_uuid, None))
For me, it was around line 2465.
- Comment out these lines:
# elif ob_obj.type == 'EMPTY' or ob_obj.type == 'ARMATURE': # empty_key = data_empties[ob_obj] # connections.append((b"OO", get_fbx_uuid_from_key(empty_key), ob_obj.fbx_uuid, None))
- Save the file.
- Restart Blender.
- Export as usual.
I installed the UE4 Tools Addon by Luis Garcia and used the “Append Hero RIG!” button to add a UE4 Mannequin to the scene.
I then extruded two new bones – item_r & item_l – and added them to the EpicExtra bone group.
After this, I selected everything and clicked the “Export Character” button and imported the result into UE4.