Created
December 1, 2018 13:44
-
-
Save celoron/932a5179d5c4927b86cb4b75d5fbb340 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## run on blender | |
| import os | |
| def importfbx(f): | |
| print("import", f) | |
| bpy.ops.import_scene.fbx(filepath=f) | |
| def import_path(path): | |
| files = os.listdir(path) | |
| for name in files: | |
| if name.endswith("fbx") or name.endswith("FBX"): | |
| importfbx(os.path.join(path,name)) | |
| import_path("G:\Path\to\fbx\files") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment