mirror of
https://gitlab.com/ProcyonLotor/vrchat-template.git
synced 2026-08-25 10:43:53 +05:00
Order
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user