Files
workinf_Blender_Wasm/tools/web/generated/M16-GAP-00069.py
mes123456 10640aeb3c
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
Govern task context and advance execution pointer
2026-08-20 06:02:43 -04:00

14 lines
535 B
Python

#!/usr/bin/env python3
import pathlib
import sys
import bpy
if __name__ == "__main__":
args = sys.argv[sys.argv.index("--") + 1:]
if len(args) != 1:
raise SystemExit("usage: blender -b --python M16-GAP-00069.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)