FBX Import

- Add's the ability to import FBX Models.
This commit is contained in:
Yusarina
2024-06-30 13:07:43 +01:00
parent 72e9564a8e
commit 05d22902c7
2 changed files with 35 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import bpy
# Importers which don't need much code should be added here, however if a importer needs alot of code
# Like the PMX and PMD importers, they should be added to their own files.
# FBX Importer settings borrowed form Cat's Blender Plugin
def import_fbx(filepath):
try:
bpy.ops.import_scene.fbx(
filepath=filepath,
automatic_bone_orientation=False,
use_prepost_rot=False,
use_anim=False
)
except (TypeError, ValueError) as e:
print(f"Error importing FBX: {str(e)}")