diff --git a/tools/internal_gen.py b/tools/internal_gen.py new file mode 100644 index 0000000..98a9c3c --- /dev/null +++ b/tools/internal_gen.py @@ -0,0 +1,8 @@ +import bpy + +def test_fake(): + auto_export_operator = bpy.ops.export_scenes.auto_gltf + stored_settings = bpy.data.texts[".gltf_auto_export_settings"] + print("OHHHHHHHHHHHHHHHHHHHHHHHHHHHHH") + print("export settings", stored_settings.as_string()) + #auto_export_operator(direct_mode = True) \ No newline at end of file diff --git a/tools/internal_generate_example_gltf_files.py b/tools/internal_generate_example_gltf_files.py index 9a2ef36..f05f8e6 100644 --- a/tools/internal_generate_example_gltf_files.py +++ b/tools/internal_generate_example_gltf_files.py @@ -36,16 +36,17 @@ for example_path in examples: for file in os.listdir(assets_path): if file.endswith(".blend"): print("file found !", file) - blend_files.append(os.path.join(assets_path, file)) + blend_files.append(os.path.join("assets", file)) if os.path.exists(art_path): for file in os.listdir(art_path): if file.endswith(".blend"): print("file found !", file) - blend_files.append(os.path.join(art_path, file)) + blend_files.append(os.path.join("art", file)) print("blend files", blend_files) for blend_file in blend_files: - command = "/home/ckaos/.local/bin/pytest -svv --blender-executable /home/ckaos/tools/blender/blender-4.0.2-linux-x64/blender --blender-template "+blend_file + fake_test_path = os.path.abspath("./internal_gen.py") + command = "pytest -svv --blender-executable /home/ckaos/tools/blender/blender-4.0.2-linux-x64/blender --blender-template "+blend_file + " "+fake_test_path return_code = subprocess.call(command.split(" "), cwd=example_path) #generate_example_gltf_files(example_path) \ No newline at end of file