Skip to content

Instantly share code, notes, and snippets.

@celoron
Created December 1, 2018 13:44
Show Gist options
  • Select an option

  • Save celoron/932a5179d5c4927b86cb4b75d5fbb340 to your computer and use it in GitHub Desktop.

Select an option

Save celoron/932a5179d5c4927b86cb4b75d5fbb340 to your computer and use it in GitHub Desktop.
## 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