Back to all

blender-unity-pipeline

by valeriybaranyshyn-pixel

00Feb 6, 2026Visit Source
def export_all_fbx(output_dir): for obj in bpy.data.objects: if obj.type == 'MESH': bpy.ops.object.select_all(action='DESELECT') obj.select_set(True) bpy.context.view_layer.objects.active = obj filepath = os.path.join(output_dir, f"{obj.name}.fbx") bpy.ops.export_scene.fbx( filepath=filepath, use_selection=True, apply_scale_options='FBX_SCALE_ALL' ) ```