View in #code on Slack
@Frieder_Erdmann: fbx sdk question: my google fu is failing, but is there a way to export a say fbx 2016 file from fbx sdk 2020?
we’ve got a fbx exporter in blender using fbx sdk 2020, but blender’s own fbx importer can’t read the files, which i assume is down to the fbx version
@teessider: yeah there is it is part of the FbxExporter class which has a method for setting fbx version which is exposed to the python API
https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_cpp_ref_class_fbx_exporter_html
# The FbxSceneRenamer() is only used for FBX version, makes sure the string doesn't contain characters the various formats/programs don't like
scene_renamer = fbx.FbxSceneRenamer(Fbx.FbxScene())
exporter = fbx.FbxExporter.Create(Fbx.FbxManager(), "ExampleFbxExporter")
exporter.SetFileVersion("FBX201600", scene_renamer.eFBX_TO_FBX)
something like that
the file version accepted strings can be found here:
https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_cpp_ref_fbxio_8h_html
you can also see this in my FBX SDK project (shameless promo
https://github.com/teessider/LODBox/blob/main/lodbox/fbx_io.py
<LODBox/lodbox/fbx_io.py at main · teessider/LODBox · GitHub | fbx_io.py>