Script to test import operators, so a single command can execute an operator on all...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 1 Feb 2011 12:47:50 +0000 (12:47 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 1 Feb 2011 12:47:50 +0000 (12:47 +0000)
commit0d3cf5c8a68b97dc248b1758e2f5a36d6433c3c1
tree568f26ada61a582cbc182c2b22b82a8a459808a8
parentffe7bde02c5725993e9c1986bbc8a83174adbbb8
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
source/blender/editors/mesh/editmesh_tools.c
source/blender/makesdna/intern/dna_genfile.c
source/blender/windowmanager/intern/wm_operators.c
source/tests/batch_import.py [new file with mode: 0644]