
I needed to convert prefab files to fbx format and then used blender to convert fbx files into wavefrontObj. To get information about the API that I have used for the script, Blender PyDocs will be a great help. The solution that I found is a bit lengthy. To run the script, save the files as convertFBXtoOBJ.py and in terminal run the following command once blender is installed. Mylist = īpy.ops.wm.read_factory_settings(use_empty=True)īpy.ops.import_scene.fbx(filepath=input_file)īpy.ops.export_scene.obj(filepath=output_file,use_materials=False,check_existing=True) When I export and then import my FBX into Unity I would like some way to covert all these duplicates to Prefabs, so that inDetails: To convert prefab files. I only needed the mesh files, so I excluded materials.To batch convert fbx files to wavefrontObj files I wrote the following script. In particular, this round-trip workflow enables you to export Unity Scenes to FBX files, import them into Autodesk® Maya®, Autodesk® Maya LT, or Autodesk® 3ds Max. I show you how to export the model by using the FBX expor. The installation guide that I followed is from here.Īfter converting the files into fbx format I used blender to convert the files into obj format. The Unity FBX Exporter package makes it easy to send geometry and animation to any application that supports the FBX format and send them back to Unity with minimal effort.

To convert prefab files to fbx file format I used a Unity Package called FBX Exporter.

The solution that I found is a bit lengthy.
