Files
Avatar-Toolkit/core/importer.py
T
Yusarina 05d22902c7 FBX Import
- Add's the ability to import FBX Models.
2024-06-30 13:07:43 +01:00

18 lines
557 B
Python

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)}")