From 8a2f618feac5e6693107a307b605c910ddb09ab6 Mon Sep 17 00:00:00 2001 From: Roland-Vyens Date: Sat, 10 Feb 2024 17:27:13 +0100 Subject: [PATCH] More useable default settings for fbx i/o I made 4 default value changes based on my one-year long continuous testing and practicing in real production environment. Here is a description of the problems caused by currently used default settings: blender/blender-addons#105058 What these changes does: 1. The new default settings are optimized for maxmium precision of animation curves, which solves the existing default settings ruining animation curves (especially for camera animation). 2. Out of box compatibility for animation with other 3D packages, mainly unreal engine (export all NLA and action will make Unreal engine confuse). --- io_scene_fbx/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 1a79d15bf..a8ac76320 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -127,7 +127,7 @@ class ImportFBX(bpy.types.Operator, ImportHelper): anim_offset: FloatProperty( name="Animation Offset", description="Offset to apply to animation during import, in frames", - default=1.0, + default=0.0, ) use_subsurf: BoolProperty( @@ -576,14 +576,14 @@ class ExportFBX(bpy.types.Operator, ExportHelper): name="NLA Strips", description="Export each non-muted NLA strip as a separated FBX's AnimStack, if any, " "instead of global scene animation", - default=True, + default=False, ) bake_anim_use_all_actions: BoolProperty( name="All Actions", description="Export each action as a separated FBX's AnimStack, instead of global scene animation " "(note that animated objects will get all actions compatible with them, " "others will get no animation at all)", - default=True, + default=False, ) bake_anim_force_startend_keying: BoolProperty( name="Force Start/End Keying", @@ -602,7 +602,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper): description="How much to simplify baked values (0.0 to disable, the higher the more simplified)", min=0.0, max=100.0, # No simplification to up to 10% of current magnitude tolerance. soft_min=0.0, soft_max=10.0, - default=1.0, # default: min slope: 0.005, max frame step: 10. + default=0.005, # default: min slope: 0.005, max frame step: 10. ) path_mode: path_reference_mode embed_textures: BoolProperty( -- 2.30.2