Ok done obj2fbx but it relies on the Autodesk FBX SDK it is free but not open source I will paste the source of my program here but you have to get the SDK yourself. Remember you take the .pyd files and place them in the same directory as the script also use the correct architecture and correct version of the file for your version of python
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
import fbx
# Create an SDK manager
manager = fbx.FbxManager.Create()
# Create a scene
scene = fbx.FbxScene.Create(manager, "")
# Create an importer object
importer = fbx.FbxImporter.Create(manager, "")
# Path to the .obj file
Input = "Input.obj"
# Specify the path and name of the file to be imported
importstat = importer.Initialize(Input, -1)
importstat = importer.Import(scene)
# Create an exporter object
exporter = fbx.FbxExporter.Create(manager, "")
save_path = "Output.fbx"
# Specify the path and name of the file to be imported
exportstat = exporter.Initialize(save_path, -1)
exportstat = exporter.Export(scene)