diff --git a/Assets/avatar-example/mesh/blend~/avatar-example_2.79.blend b/Assets/avatar-example/mesh/blend~/avatar-example_2.79.blend index f3e5db7..2fb2301 100644 --- a/Assets/avatar-example/mesh/blend~/avatar-example_2.79.blend +++ b/Assets/avatar-example/mesh/blend~/avatar-example_2.79.blend @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f4f04800a46214830c32e116ae1444c87e86da3592aa0f4b6bae045d9a6da42d -size 686168 +oid sha256:1342cd2fd64033b5330da4ec6ca5f16470dd757169e7c6b3eeed3e1da0b5a804 +size 898172 diff --git a/Assets/avatar-example/mesh/blend~/fbx_export.py b/Assets/avatar-example/mesh/blend~/fbx_export.py index 278613d..fd24b71 100644 --- a/Assets/avatar-example/mesh/blend~/fbx_export.py +++ b/Assets/avatar-example/mesh/blend~/fbx_export.py @@ -3,8 +3,8 @@ from datetime import datetime import bpy _FUTURE = bpy.app.version >= (2, 80, 0) -from bpy.props import EnumProperty, StringProperty, BoolProperty, IntProperty -from bpy.types import UIList, Operator, Panel, Context, Scene +from bpy.props import BoolProperty, EnumProperty, IntProperty, StringProperty +from bpy.types import Context, Operator, Panel, Scene, UIList if _FUTURE: from bpy.types import Collection as Group else: @@ -41,26 +41,30 @@ def fbx_export(context: Context) -> None: print("[%s] Batch FBX export begin" % datetime.now()) settings_ascii = dict( + # Common version='ASCII6100', - use_selection=True, - global_scale=1.0, axis_forward='-Z', axis_up='Y', + global_scale=1.0, object_types=context.scene.fbx_object_types, - use_mesh_modifiers=True, - mesh_smooth_type='OFF', + use_selection=True, + # Mesh + mesh_smooth_type='FACE', use_mesh_edges=False, + use_mesh_modifiers=True, use_tspace=False, - use_armature_deform_only=False, + # Armature add_leaf_bones=False, + armature_nodetype='NULL', primary_bone_axis='Y', secondary_bone_axis='X', - armature_nodetype='NULL', + use_armature_deform_only=False, + # Animation use_anim=context.scene.fbx_use_anim, use_default_take=False, - path_mode='RELATIVE', + # File batch_mode='OFF', - use_batch_own_dir=False, + path_mode='RELATIVE', ) settings_binary = dict( @@ -73,31 +77,31 @@ def fbx_export(context: Context) -> None: bake_space_transform=True, global_scale=1.0, object_types=context.scene.fbx_object_types, - use_custom_props=False, + use_custom_props=True, use_selection=True, # Mesh mesh_smooth_type='FACE', - use_mesh_modifiers=False, use_mesh_edges=False, + use_mesh_modifiers=False, use_tspace=False, # Armature add_leaf_bones=False, + armature_nodetype='NULL', primary_bone_axis='Y', secondary_bone_axis='X', use_armature_deform_only=False, - armature_nodetype='NULL', # Animation bake_anim=context.scene.fbx_use_anim, - bake_anim_use_all_bones=True, - bake_anim_use_all_actions=True, - bake_anim_use_nla_strips=True, bake_anim_force_startend_keying=True, - bake_anim_step=1.0, bake_anim_simplify_factor=1.0, + bake_anim_step=1.0, + bake_anim_use_all_actions=True, + bake_anim_use_all_bones=True, + bake_anim_use_nla_strips=True, # File - path_mode='RELATIVE', - embed_textures=False, batch_mode='OFF', + embed_textures=False, + path_mode='RELATIVE', ) settings = settings_binary if _FUTURE or context.scene.fbx_force_binary else settings_ascii