Govern task context and advance execution pointer
This commit is contained in:
29
tools/web/generated/M16-GAP-00018.py
Normal file
29
tools/web/generated/M16-GAP-00018.py
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/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)
|
||||
settings = bpy.data.particles.new("WebGapParticleSettings")
|
||||
settings.use_fake_user = True
|
||||
settings.type = "EMITTER"
|
||||
settings.emit_from = "FACE"
|
||||
settings.physics_type = "NEWTON"
|
||||
settings.distribution = "JIT"
|
||||
settings.count = 128
|
||||
settings.frame_start = 4.0
|
||||
settings.frame_end = 96.0
|
||||
settings.lifetime = 32.0
|
||||
settings.particle_size = 0.125
|
||||
settings.display_size = 0.25
|
||||
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-00018.py -- OUTPUT")
|
||||
main(pathlib.Path(arguments[0]))
|
||||
Reference in New Issue
Block a user