FBX Python SDK for Python 3.9

FBX Python SDK for Python 3.9

hansgodard
Participant Participant
12,795 Views
27 Replies
Message 1 of 28

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

Accepted solutions (1)
12,796 Views
27 Replies
Replies (27)
Message 2 of 28

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
Message 3 of 28

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

Message 4 of 28

wangjunjie04
Observer
Observer

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

Message 5 of 28

wangjunjie04
Observer
Observer

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

0 Likes
Message 6 of 28

hansgodard
Participant
Participant

I edited the link, sorry about that

Message 7 of 28

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?

Message 8 of 28

scottdunn449
Community Visitor
Community Visitor

Thanks all for the solutions

0 Likes
Message 9 of 28

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
Message 10 of 28

hansgodard
Participant
Participant

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

0 Likes
Message 11 of 28

beautifulrobot
Observer
Observer

that works! thx for posting this!

Message 12 of 28

rafaellozano3d
Community Visitor
Community Visitor
God bless you man
0 Likes
Message 13 of 28

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
Message 14 of 28

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
Message 15 of 28

hansgodard8NPBT
Observer
Observer

what pip command ?

0 Likes
Message 16 of 28

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
Message 17 of 28

hansgodard8NPBT
Observer
Observer

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

0 Likes
Message 18 of 28

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
Message 19 of 28

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
Message 20 of 28

zcc06280301
Observer
Observer

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

0 Likes