Files
workinf_Blender_Wasm/tools/web/generated/M16-GAP-00025.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

25 lines
732 B
Python

#!/usr/bin/env python3
import pathlib
import sys
import bpy
def main(output: pathlib.Path) -> None:
bpy.ops.wm.read_factory_settings(use_empty=True)
texture = bpy.data.textures.new("WebGapTexture", type="CLOUDS")
texture.noise_scale = 0.42
texture.noise_depth = 4
texture.intensity = 0.72
texture.contrast = 1.25
texture.saturation = 0.8
texture.use_fake_user = True
bpy.ops.wm.save_as_mainfile(filepath=str(output.resolve()), check_existing=False, compress=True)
if __name__ == "__main__":
arguments = sys.argv[sys.argv.index("--") + 1 :]
if len(arguments) != 1:
raise SystemExit("usage: blender -b --python M16-GAP-00025.py -- OUTPUT")
main(pathlib.Path(arguments[0]))