Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

FBX Python SDK for Python 3.9

hansgodard
Participant

FBX Python SDK for Python 3.9

hansgodard
Participant
Participant

Hello!

I'm using Maya 2023 and Unreal Engine 5 which both are using Python 3.9

But I can't find the SDK here :   https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-3

 

If you install it for Windows,  it is compiled until Python 3.7 only
Please compile it !

 

-hans

Reply
Accepted solutions (1)
8,408 Views
24 Replies
Replies (24)

ross-g
Participant
Participant

Unfortunately until Autodesk decide to provide pre-compiled bindings for a variety of Python versions (I think it's reasonable to expect they should pre-compile for all Py versions their DCC support, but they do not...) your only real choice is to build it yourself.

 

Sadly they also don't provide any documentation on how to build it yourself, but there is some info out there. This is the best I was able to find (worked for me on a recent version):

https://www.ralphminderhoud.com/blog/build-fbx-python-sdk-for-windows/

 

The other benefit to building yourself is that you can add bindings for the methods that Autodesk has just forgotten to include themselves.

0 Likes

hansgodard
Participant
Participant
Accepted solution

I figured,  here it is for those interested,

 

and NOT thank you Autodesk,  this is not serious at all.


https://www.dropbox.com/s/rlvj4aoui3w32js/fbxsdk_py3.9_py3.10_.7z?dl=0

wangjunjie04
Observer
Observer

Was just looking for it today and you posted it right on time, thank you! 

wangjunjie04
Observer
Observer

Oh seems a password is needed for the zip file, can I have the password pls 

0 Likes

hansgodard
Participant
Participant

I edited the link, sorry about that

MortenBohne
Observer
Observer

Hey, I tried the versions from your dropbox link, but couldn't get any of them to work. I tested them in maya2023.2 (python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]) and blender3.30 (pyhon 3.10.2 (main, Jan 27 2022, 08:34:43) [MSC v.1928 64 bit (AMD64)])

 

but both places i got the error

 

# Error: DLL load failed while importing fbx: %1 is not a valid Win32 application.
# # Traceback (most recent call last):
# # File "<maya console>", line 5, in <module>
# # ImportError: DLL load failed while importing fbx: %1 is not a valid Win32 application.

 

It was the same error i ran into when i tried to build it myself a while back on a different machine. Did anyone get it to work on these versions?

scottdunn449
Community Visitor
Community Visitor

Thanks all for the solutions

0 Likes

beautifulrobot
Observer
Observer

hey hans - when i download the zip all the files show 0 bytes. not sure if i'm doing something wrong?

0 Likes

hansgodard
Participant
Participant

try again to download,  indeed the file were weird.... it's fixed

0 Likes

beautifulrobot
Observer
Observer

that works! thx for posting this!

rafaellozano3d
Community Visitor
Community Visitor
God bless you man
0 Likes

lukasamsa1
Community Visitor
Community Visitor

First of all, thank you very much for this solution, it made my project possible, but unfortunately only on Windows. I was wondering if anyone had any success in compiling the python fbx sdk (python 3.8+) for Linux? Any help would be much appreciated!

0 Likes

regalir
Autodesk
Autodesk

With the latest released version 2020.3.7 that can be downloaded now, the FBX python is now pre-compiled for Python 3.10 and comes in a wheel archive so it can be installed with a pip install command. We also upgraded the FBX Python bindings so they can be compiled with SIP 6.6.x for your specific Python interpreter version (see the instructions in the README.md)

0 Likes

hansgodard8NPBT
Observer
Observer

what pip command ?

0 Likes

regalir
Autodesk
Autodesk

pip is a Python module (and most likely you already have it). To install the FBX Python you should run:

python3 -m pip install fbx-2020.3.7-cp310-cp310-manylinux1_x86_64.whl

hansgodard8NPBT
Observer
Observer

thx I would never have guessed the name of that package !
any documentation about that ?

0 Likes

regalir
Autodesk
Autodesk

You mean about the FBX wheel or pip?

When you download and extract fbx202037_fbxpythonsdk_linux.tar.gz, you end up with:

regalir@localhost 2020.3.7]$ ls -l
total 34284
-rw-r--r--.  1 regalir regalir 34997334 Mar 12 17:25 fbx-2020.3.7-cp310-cp310-manylinux1_x86_64.whl
-rw-rw-r--.  1 regalir regalir      105 Mar 12 17:33 FBX_SDK_Online_Documentation.html
-rw-rw-r--.  1 regalir regalir    96856 Mar 12 17:33 License.txt
-rw-rw-r--.  1 regalir regalir     1610 Mar 12 17:33 README.md
drwxr-xr-x. 10 regalir regalir      184 Mar 12 17:25 samples
[regalir@localhost 2020.3.7]$ 

 

0 Likes

hansgodard8NPBT
Observer
Observer

I know pip 🙂
was more curious about this module name , but as long as it works 😆

fbx-2020.3.7-cp310-cp310-manylinux1_x86_64.whl

 

0 Likes

zcc06280301
Observer
Observer

Hello, does the FBX Python SDK support python3.11?

0 Likes