Vu le nombre de pièces d'un avion, je ne pense pas que ce soit faisable, surtout qu'il faut pouvoir éventuellement les modifier séparément.
Ce que je ne comprends pas c'est la ou les raisons qui font que l'exportation renvoie des erreurs.
Il doit y avoir un os dans mes paramètres des onglets "settings" et "objects".
En spoiler, le rapport d'erreurs après tentative de compilation
[Spoiler]
bpy.context.scene.msfs_multi_exporter_settings.export_texture_dir = "../texture/"
bpy.context.scene.msfs_multi_exporter_settings.export_copyright = "D5turbi"
bpy.context.scene.msfs_multi_exporter_settings.use_renderable = True
bpy.context.scene.msfs_multi_exporter_settings.export_extras = True
bpy.context.scene.msfs_multi_exporter_settings.export_tangents = False
bpy.context.scene.msfs_multi_exporter_settings.use_mesh_edges = False
bpy.context.scene.msfs_multi_exporter_settings.use_mesh_vertices = False
bpy.context.scene.multi_exporter_grouped_by_collections = True
bpy.context.scene.msfs_multi_exporter_lod_groups[0].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[1].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[2].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[3].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[4].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[5].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[6].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[7].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[8].lods[0].enabled = True
bpy.context.space_data.system_bookmarks_active = 2
bpy.context.scene.multi_exporter_show_hidden_objects = False
bpy.context.scene.multi_exporter_grouped_by_collections = False
bpy.context.scene.multi_exporter_grouped_by_collections = True
bpy.context.scene.msfs_multi_exporter_lod_groups[0].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[1].folder_name = "//"
bpy.context.scene.msfs_multi_exporter_lod_groups[1].lods[0].file_name = "Empennages"
bpy.context.scene.msfs_multi_exporter_lod_groups[1].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[2].lods[0].file_name = "Fuselage exterieur"
bpy.context.scene.msfs_multi_exporter_lod_groups[2].folder_name = "//"
bpy.context.scene.msfs_multi_exporter_lod_groups[2].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[3].folder_name = "//"
bpy.context.scene.msfs_multi_exporter_lod_groups[3].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[4].folder_name = ""
bpy.context.scene.msfs_multi_exporter_lod_groups[0].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[1].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[2].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[3].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[4].folder_name = "//"
bpy.context.scene.msfs_multi_exporter_lod_groups[4].lods[0].file_name = "Turbi_lod00"
bpy.data.scenes["Scene"].(null) = False
bpy.data.scenes["Scene"].(null) = True
bpy.data.scenes["Scene"].(null) = False
bpy.ops.object.select_all(action='SELECT')
bpy.context.scene.msfs_multi_exporter_lod_groups[4].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[5].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[5].folder_name = "//"
bpy.context.scene.msfs_multi_exporter_lod_groups[5].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[6].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[6].folder_name = "//"
bpy.context.scene.msfs_multi_exporter_lod_groups[6].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[7].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[7].folder_name = "//"
bpy.context.scene.msfs_multi_exporter_lod_groups[7].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[8].lods[0].enabled = True
bpy.context.scene.msfs_multi_exporter_lod_groups[8].lods[0].file_name = "Turbi_lod00"
bpy.context.scene.msfs_multi_exporter_lod_groups[8].expanded = False
bpy.context.scene.msfs_multi_exporter_lod_groups[8].expanded = True
bpy.data.window_managers["WinMan"].(null) = 'GLTF_SEPARATE'
bpy.context.space_data.params.filename = "Turbi_LOD00.gltf"
Python: Traceback (most recent call last):
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\__init__.py", line 628, in execute
return gltf2_blender_export.save(context, export_settings)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 35, in save
json, buffer = __export(export_settings)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 52, in __export
__gather_gltf(exporter, export_settings)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 66, in __gather_gltf
active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 30, in gather_gltf2
scenes.append(__gather_scene(blender_scene, export_settings))
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 38, in wrapper_cached
result = func(*args, **kwargs)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 67, in __gather_scene
node = gltf2_blender_gather_nodes.gather_node(
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 31, in gather_node
children=__gather_children(vnode, blender_object, export_settings),
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 73, in __gather_children
node = gather_node(c, export_settings)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 31, in gather_node
children=__gather_children(vnode, blender_object, export_settings),
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 73, in __gather_children
node = gather_node(c, export_settings)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 31, in gather_node
children=__gather_children(vnode, blender_object, export_settings),
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 73, in __gather_children
node = gather_node(c, export_settings)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 35, in gather_node
mesh=__gather_mesh(vnode, blender_object, export_settings),
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 246, in __gather_mesh
result = gltf2_blender_gather_mesh.gather_mesh(blender_mesh,
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 38, in wrapper_cached
result = func(*args, **kwargs)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_mesh.py", line 61, in gather_mesh
primitives=__gather_primitives(blender_mesh, uuid_for_skined_data, vertex_groups, modifiers, materials, export_settings),
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_mesh.py", line 147, in __gather_primitives
return gltf2_blender_gather_primitives.gather_primitives(blender_mesh,
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 38, in wrapper_cached
result = func(*args, **kwargs)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_primitives.py", line 81, in gather_primitives
material = gltf2_blender_gather_materials.gather_material(
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 38, in wrapper_cached
result = func(*args, **kwargs)
File "E:\Blender 3.2\3.2\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_materials.py", line 85, in gather_material
material = deepcopy(base_material)
File "E:\Blender 3.2\3.2\python\lib\copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "E:\Blender 3.2\3.2\python\lib\copy.py", line 271, in _reconstruct
state = deepcopy(state, memo)
File "E:\Blender 3.2\3.2\python\lib\copy.py", line 146, in deepcopy
y = copier(x, memo)
File "E:\Blender 3.2\3.2\python\lib\copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "E:\Blender 3.2\3.2\python\lib\copy.py", line 146, in deepcopy
y = copier(x, memo)
File "E:\Blender 3.2\3.2\python\lib\copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "E:\Blender 3.2\3.2\python\lib\copy.py", line 161, in deepcopy
rv = reductor(4)
TypeError: cannot pickle 'Image' object
[/Spoiler]
Dernière modification par D5Turbi (22-06-2022 12:57:35)