Results 1 to 2 of 2

Thread: Import Multiple FBX files

  1. #1
    Member chombor's Avatar
    Join Date
    Mar 2016
    Location
    Russian Federation
    Posts
    36

    Import Multiple FBX files

    Is it possible? What if just modify io_import_multiple_objs.py a little, by simple replace all obj words to fbx, will it work?

    Would be appreciated if someone give me a way to dig in



  2. #2
    Member chombor's Avatar
    Join Date
    Mar 2016
    Location
    Russian Federation
    Posts
    36
    Found some code, written by McBuff

    import bpyimport glob
    import os

    importDir = "C:\\Users\\studio\\Downloads\\test"
    print(importDir)


    os.chdir(importDir)
    for files in glob.glob("*.obj"):
    print( files )
    bpy.ops.import_scene.obj(filepath=files, filter_glob="*.obj;*.mtl", use_ngons=True, use_edges=True, use_smooth_groups=True, use_split_objects=True, use_split_groups=True, use_groups_as_vgroups=False, use_image_search=True, split_mode='ON', global_clamp_size=0, axis_forward='-Z', axis_up='Y')




    for files in glob.glob("*.3ds"):
    print( files ) bpy.ops.import_scene.autodesk_3ds(filepath=files, filter_glob="*.3ds", constrain_size=10, use_image_search=True,use_apply_transform=True,axi s_forward='Y', axis_up='Z')
    and edit it a bit

    import bpyimport glob
    import os

    importDir = "C:\\Users\\username\\Desktop\\fbx"
    print(importDir)




    os.chdir(importDir)
    for files in glob.glob("*.fbx"):
    print( files )
    bpy.ops.import_scene.fbx(filepath=files, filter_glob="*.fbx;*.mtl", axis_forward='-Z', axis_up='Y')
    so it works perfectly! ^_^ now I want to place model in grid or row at least, again I would be thankful for some advice



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •