Read FBX using python

Read FBX using python

137_haiderali
Community Visitor Community Visitor
1,532 Views
1 Reply
Message 1 of 2

Read FBX using python

137_haiderali
Community Visitor
Community Visitor

I want to directly read FBX files or any similar format that contains animation data in blendshapes and bone rotations , using Python, rather than importing it in a 3D modeling software .

 

Currently Im working in blender , and using blender python api for my use case , which is to read animation data from the scene and store it in a .txt file.
However I would like to read the fbx file or any similar format directly rather then importing it into blender ,which basically imports everything within the FBX , slowing my overall pipeline.

my goal is to automate this process by loading multiple FBX and reading specific information in the FBX (animation ) and saving it.  

0 Likes
1,533 Views
1 Reply
Reply (1)
Message 2 of 2

regalir
Autodesk
Autodesk

We do provide the FBX Python SDK (precompiled for Python 3.10) and the FBX Python Bindings (sources that you have to compile with/for your Python interpreter). But be aware that, even if you decide to use this, the FBX SDK does not allow reading only parts of the FBX file so you will still have to load the whole file in memory and process the data to only keep the desired one to save.

0 Likes