Src_dir = '/Users/name/Desktop/obj_files'ĭest_dir = '/Users/name/Desktop/fbx_files'īpy._all(action='SELECT')īpy.ops.import_scene.obj(filepath=os.path.join(src_dir,f))īpy.ops.export_scene.fbx(filepath=os.path. Our FBX file converters either Autoconverter or Autoshaper, can convert your FBX files thanks to the official FBX SDK from Autodesk which allows us to read and write to. You could start with a script like import bpy FBX file format can store transparent colors, texture images, assembly structure and even model animation data, but our FBX conversion software doesn't support animation frames. The commands you want to use to convert your models are _scene.obj() and _scene.fbx() You could also start blender in the terminal and have it act as an interactive python console in the terminal without using blender's gui. You can also open a text file in blender's text editor and run it as a python script. Blender is able to import and export both obj and fbx files, you will need to do some tests to see if the models you have are handled correctly.īlender has a python interpreter built into it, you can use blender's python console to enter python commands to do your conversion. You won't get any help using the Autodesk converter here, but if you are asking whether you can use blender to do the conversions, then the answer might be yes.
0 Comments
Leave a Reply. |