Convert .fbx to .obj with Python FBX SDK
Question: I have a ten frame .fbx file of an animal walking. This file includes a rigged
model with textures, but I am only interested in the mesh of the model at each
frame.

How can I use Python FBX SDK or Python Blender SDK to export each frame of the
fbx file into an obj file?

Am I approaching this the wrong way? Should I try to find a way to do this
manually in Maya/Blender first?


Answer: its a example for fbx to obj 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
    milfalcon = "samples/millenium-falcon/millenium-falcon.fbx"
    
    # Specify the path and name of the file to be imported                                                                            
    importstat = importer.Initialize(milfalcon, -1)
    
    importstat = importer.Import(scene)
    
    # Create an exporter object                                                                                                  
    exporter = fbx.FbxExporter.Create(manager, "")
    
    save_path = "samples/millenium-falcon/millenium-falcon.obj"
    
    # Specify the path and name of the file to be imported                                                                            
    exportstat = exporter.Initialize(save_path, -1)
    
    exportstat = exporter.Export(scene)
    

