I want to, perhaps using the command line, run Blender in background mode and have it process a large number of individual .obj files. "Process" means applying a few commands to the single mesh contained within each .obj file, and then export each modified mesh as a new .obj file in a new dir. TLDR: I've made a script, but the problem I'm having is understanding how I would run the script upon a large number of .obj files.
Here's what I have so far.
import os
import bpy
bpy.ops.object.editmode_toggle()
bpy.ops.mesh.normals_make_consistent(inside=False)
bpy.ops.transform.resize(value=(100, 100, 100))
bpy.ops.export_scene.obj(filepath="C:\\output", check_existing=True)
This seems like a simple problem, but no amount of googling has helped. Documentations says I can execute the following in cmd, but I don't understand how I would translate it to this situation.
blender myscene.blend --background --python myscript.py
Remember, I'm working with a ton of .obj files, no .blend files.