3

I look for a standalone script which can export from a blender file with one single Mesh to an arbitrary 3d format (.dae, .obj, .ply, ...).

The deeper problem is, I have a directory with lots of .blend files and I want a little script which can export automatic them to the 3d files. Otherwise I would have to open each of these files in blender and export manually.

Environment:

  • Archlinux
  • Blender 2.64
Dave
  • 25,513

1 Answers1

2

Its really simple to write blender python scripts:

import bpy
bpy.ops.wm.open_mainfile(filepath="blabla.blend")
bpy.ops.export_scene.obj(filepath="blabla.obj")

save this script as script.py and run script from commandline

blender -P script.py

thats basically it.

D-rk
  • 133