14 lines
608 B
Python
14 lines
608 B
Python
#!/usr/bin/env python3
|
|
import pathlib
|
|
import bpy
|
|
|
|
|
|
if __name__ == "__main__":
|
|
arguments = bpy.app.driver_namespace.get("_unused")
|
|
args = __import__("sys").argv[__import__("sys").argv.index("--") + 1:]
|
|
if len(args) != 1:
|
|
raise SystemExit("usage: blender -b --python M16-GAP-00048.py -- OUTPUT")
|
|
source = pathlib.Path(__file__).resolve().parents[3] / "tests/files/web/modifier_grease_pencil_scene.blend"
|
|
bpy.ops.wm.open_mainfile(filepath=str(source), load_ui=False)
|
|
bpy.ops.wm.save_as_mainfile(filepath=str(pathlib.Path(args[0]).resolve()), check_existing=False, compress=True)
|