How to convert a GLB avatar file to FBX?

Since August 2022, Ready Player Me no longer supports exporting avatars as FBX files. It's still possible to convert a GLB avatar file to FBX manually using Blender.

  1. Create a file named glb_to_fbx.py with the following content:
    import bpy, sys, os

    if __name__ == '__main__':
    argv = sys.argv[sys.argv.index("--") + 1:]
    for o in bpy.data.objects:
    bpy.data.objects.remove(o, do_unlink=True)

    bpy.ops.import_scene.gltf(filepath=argv[0], guess_original_bind_pose=False)
    bpy.ops.export_scene.fbx(filepath=os.path.splitext(argv[0])[0] + ".fbx", bake_anim=False, add_leaf_bones=False, path_mode="COPY", embed_textures=True)
  2. Run Blender with the following command: blender --background --python $PATH_TO_SCRIPT -- $PATH_TO_GLB_FILE where $PATH_TO_SCRIPT is the path to the glb_to_fbx.py file and $PATH_TO_GLB_FILE is the path to your GLB file.

The resulting FBX will be generated in the same directory and with the same file name as the original GLB.