Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken FBX skeletal mesh export #14

Open
GarmOfGnipahellir opened this issue Jan 27, 2021 · 0 comments · May be fixed by #15
Open

Broken FBX skeletal mesh export #14

GarmOfGnipahellir opened this issue Jan 27, 2021 · 0 comments · May be fixed by #15
Labels
bug Something isn't working

Comments

@GarmOfGnipahellir
Copy link
Contributor

Describe the bug
Skeleton/armatures won't get exported with FBX.

To Reproduce
Steps to reproduce the behavior:

  1. Create a skeletal mesh export collection with an armature
  2. Export it
  3. It won't have a skeleton

Expected behavior
Export should contain the skeleton.

Device:

  • OS: Windows 10
  • Blender Version: 2.91

Additional context
I suspect the export settings is at fault:

def export_fbx(filepath):
    """Export an FBX with standardized settings."""
    return bpy.ops.export_scene.fbx(
        filepath=filepath,
        check_existing=False,
        use_selection=True,
        global_scale=1.0,
        apply_unit_scale=True,
        apply_scale_options='FBX_SCALE_NONE',
        bake_space_transform=True,
        object_types={'EMPTY', 'MESH', 'OTHER'}, # <-- Shouldn't this contain 'ARMATURE' as well?
        use_armature_deform_only=True,
        mesh_smooth_type='FACE',
        add_leaf_bones=False,
        embed_textures=False,
        axis_forward='-Z',
        axis_up='Y',
    )

I'll have a fix for this in my fork if this is in fact a bug.

@GarmOfGnipahellir GarmOfGnipahellir added the bug Something isn't working label Jan 27, 2021
@GarmOfGnipahellir GarmOfGnipahellir linked a pull request Jan 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant