gd-3d / bless

blender level editor software suite
MIT License
22 stars 2 forks source link

gltf: handle export flags better #75

Open yankscally opened 6 days ago

yankscally commented 6 days ago
import bpy
op = bpy.context.active_operator

op.filepath = '//gltf/tunnel.gltf'
op.export_import_convert_lighting_mode = 'SPEC'
op.gltf_export_id = ''
op.export_use_gltfpack = False
op.export_gltfpack_tc = True
op.export_gltfpack_tq = 8
op.export_gltfpack_si = 1.0
op.export_gltfpack_sa = False
op.export_gltfpack_slb = False
op.export_gltfpack_vp = 14
op.export_gltfpack_vt = 12
op.export_gltfpack_vn = 8
op.export_gltfpack_vc = 8
op.export_gltfpack_vpi = 'Integer'
op.export_gltfpack_noq = True
op.export_format = 'GLTF_SEPARATE'
op.ui_tab = 'GENERAL'
op.export_copyright = ''
op.export_image_format = 'AUTO'
op.export_image_add_webp = False
op.export_image_webp_fallback = False
op.export_texture_dir = ''
op.export_jpeg_quality = 75
op.export_image_quality = 75
op.export_keep_originals = False
op.export_texcoords = True
op.export_normals = True
op.export_gn_mesh = False
op.export_draco_mesh_compression_enable = False
op.export_draco_mesh_compression_level = 6
op.export_draco_position_quantization = 14
op.export_draco_normal_quantization = 10
op.export_draco_texcoord_quantization = 12
op.export_draco_color_quantization = 10
op.export_draco_generic_quantization = 12
op.export_tangents = False
op.export_materials = 'EXPORT'
op.export_unused_images = False
op.export_unused_textures = False
op.export_vertex_color = 'MATERIAL'
op.export_all_vertex_colors = True
op.export_active_vertex_color_when_no_material = True
op.export_attributes = False
op.use_mesh_edges = False
op.use_mesh_vertices = False
op.export_cameras = False
op.use_selection = False
op.use_visible = False
op.use_renderable = False
op.use_active_collection_with_nested = True
op.use_active_collection = False
op.use_active_scene = False
op.collection = ''
op.at_collection_center = False
op.export_extras = False
op.export_yup = True
op.export_apply = True
op.export_shared_accessors = False
op.export_animations = True
op.export_frame_range = False
op.export_frame_step = 1
op.export_force_sampling = True
op.export_pointer_animation = False
op.export_animation_mode = 'ACTIONS'
op.export_nla_strips_merged_animation_name = 'Animation'
op.export_def_bones = False
op.export_hierarchy_flatten_bones = False
op.export_hierarchy_flatten_objs = False
op.export_armature_object_remove = False
op.export_leaf_bone = False
op.export_optimize_animation_size = True
op.export_optimize_animation_keep_anim_armature = True
op.export_optimize_animation_keep_anim_object = False
op.export_optimize_disable_viewport = False
op.export_negative_frame = 'SLIDE'
op.export_anim_slide_to_zero = False
op.export_bake_animation = False
op.export_anim_single_armature = True
op.export_reset_pose_bones = True
op.export_current_frame = False
op.export_rest_position_armature = True
op.export_anim_scene_split_object = True
op.export_skins = True
op.export_influence_nb = 4
op.export_all_influences = False
op.export_morph = True
op.export_morph_normal = True
op.export_morph_tangent = False
op.export_morph_animation = True
op.export_morph_reset_sk_data = True
op.export_lights = False
op.export_try_sparse_sk = True
op.export_try_omit_sparse_sk = False
op.export_gpu_instances = False
op.export_action_filter = False
op.export_convert_animation_pointer = False
op.export_nla_strips = True
op.export_original_specular = False
op.will_save_settings = False
op.export_hierarchy_full_collections = False
op.export_extra_animations = False

this is what is saved in the export presets. Could be useful.