FBXエクスポート
addon
batch_modeとは?
use_metadataとは?
VRChatでの設定
code:export.py
def export_fbx(export_filepath="test.fbx") :
bpy.ops.export_scene.fbx(
filepath=export_filepath,
check_existing=True,
filter_glob="*.fbx",
use_selection=False,
use_visible=True,
use_active_collection=False,
global_scale=1.0,
apply_unit_scale=True,
apply_scale_options='FBX_SCALE_ALL',
bake_space_transform=False, # !EXPERIMENTAL!
object_types={'MESH','ARMATURE'},
use_mesh_modifiers=True, # Apply Modifiers, Apply modifiers to mesh objects (except Armature ones) - WARNING: prevents exporting shape keys
use_mesh_modifiers_render=True, # (DISABLED in Blender 2.8)
mesh_smooth_type='OFF',
colors_type = 'SRGB',
use_subsurf=False,
use_mesh_edges=False,# Export loose edges
use_tspace=False,
use_custom_props=False,
use_triangles=True,
add_leaf_bones=False,
primary_bone_axis='Y',
secondary_bone_axis='X',
use_armature_deform_only=True,
armature_nodetype='NULL',
bake_anim=False,
bake_anim_use_all_bones=True,
bake_anim_use_nla_strips=True,
bake_anim_use_all_actions=True,
bake_anim_force_startend_keying=True,
bake_anim_step=1.0,
bake_anim_simplify_factor=1.0,
path_mode='AUTO',
embed_textures=False,
batch_mode='OFF',
use_batch_own_dir=True,
use_metadata=True,
axis_forward='-Z',
axis_up='Y'
)