mifth / mifthtools

MifthTools
BSD 3-Clause "New" or "Revised" License
871 stars 129 forks source link

2 issues #32

Closed asuralhp closed 4 years ago

asuralhp commented 4 years ago

1. obj export in blender exchanger doesn't have _bake_anim ,bake_anim_use_allactions arguments that leads an error

            bpy.ops.export_scene.obj(filepath=model_path, check_existing=True, use_selection=True, use_mesh_modifiers=apply_modifiers, use_edges=True, use_normals=True, use_uvs=True, use_vertex_groups=False, use_blen_objects=True, keep_vertex_order=True, global_scale=self.world_scale, bake_anim=False, bake_anim_use_all_actions=False)

2. Houdini import and export also need to define _op.import/exporttype = 'FBX' otherwise blender will not export or import 'FBX' but 'OBJ' after toggling 'OBJ' import or export that leads Houdini cannot import the exchange file because the file extension is 'OBJ'

    row = layout.row()
    op = col.operator("ex_export.exchanger", text="ExportHoudini")
    op.world_scale = 0.01
    op = col.operator("ex_import.exchanger", text="ImportHoudini")
    op.world_scale = 100.0

    layout.separator()
    op = col.operator("ex_export.exchanger", text="Export Obj")
    op.export_type = 'OBJ'
    op = col.operator("ex_import.exchanger", text="Import Obj")
    op.import_type = 'OBJ'
mifth commented 4 years ago

Thanks a lot! I have deleted bake_anim ,bake_anim_use_all_actions.

All fixed here. https://github.com/mifth/mifthtools/commit/6db0b2ad34ab9ae582058d21a38feeb91a3dbf49

mifth commented 4 years ago

Another fix https://github.com/mifth/mifthtools/commit/982365b84cb2bba4b471ef8355c00107452d9282