From 0d3cf5c8a68b97dc248b1758e2f5a36d6433c3c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 1 Feb 2011 12:47:50 +0000 Subject: Script to test import operators, so a single command can execute an operator on all files in a directory and optionally save out blend files for inspection. This comes in handy for testing importers against 100's of files, quickly showing breakages and easier to setup then unit tests. Example usage: blender.bin --background --python source/tests/batch_import.py -- \ --operator="bpy.ops.import_scene.obj" \ --path="/data/testfiles/obj" \ --match="*.obj" \ --start=0 --end=50 \ --save_path="/tmp/test" Also found my name was spelt wrong in some places :) --- release/scripts/templates/background_job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts/templates') diff --git a/release/scripts/templates/background_job.py b/release/scripts/templates/background_job.py index f199ee5ad50..0337f8f4922 100644 --- a/release/scripts/templates/background_job.py +++ b/release/scripts/templates/background_job.py @@ -82,7 +82,7 @@ def main(): # When --help or no args are given, print this help usage_text = "Run blender in background mode with this script:" - usage_text += " blender -b -P " + __file__ + " -- [options]" + usage_text += " blender --background --python " + __file__ + " -- [options]" parser = optparse.OptionParser(usage=usage_text) -- cgit v1.2.3