Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gltf: handle export flags better #75

Open
yankscally opened this issue Nov 19, 2024 · 0 comments
Open

gltf: handle export flags better #75

yankscally opened this issue Nov 19, 2024 · 0 comments

Comments

@yankscally
Copy link
Collaborator

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.

@yankscally yankscally changed the title gltf: more control over export gltf: handle export flags better Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant