Skip to content

Instantly share code, notes, and snippets.

@Suaz
Suaz / batch_exporter.py
Created December 30, 2024 21:47
Export meshes from blender
import bpy
import os
# Set the directory where you want to save the exported files
export_dir = "/Users/csuaznabar/Documents/Blender/assets"
# Ensure the directory exists
if not os.path.exists(export_dir):
os.makedirs(export_dir)
@Suaz
Suaz / batch_exporter_v2.py
Created December 31, 2024 00:56
Export bash for Blender
import bpy
import os
# Set the directory where you want to save the exported files
export_dir = "C:/path/to/export/directory"
# Ensure the directory exists
if not os.path.exists(export_dir):
os.makedirs(export_dir)