Govern task context and advance execution pointer
This commit is contained in:
19
tools/web/generate-brush-fixture.py
Normal file
19
tools/web/generate-brush-fixture.py
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import bpy
|
||||
|
||||
def main(output):
|
||||
bpy.ops.wm.read_factory_settings(use_empty=True)
|
||||
brush = bpy.data.brushes.new("WebGapBrush")
|
||||
brush.size = 42
|
||||
brush.strength = 0.65
|
||||
brush.hardness = 0.8
|
||||
brush.spacing = 17
|
||||
brush.jitter = 0.2
|
||||
brush.sculpt_brush_type = "DRAW"
|
||||
bpy.ops.wm.save_as_mainfile(filepath=output, compress=True)
|
||||
|
||||
if __name__ == "__main__":
|
||||
args = sys.argv[sys.argv.index("--") + 1:]
|
||||
if len(args) != 1: raise SystemExit("usage: blender -b --python generate-brush-fixture.py -- OUTPUT")
|
||||
main(args[0])
|
||||
Reference in New Issue
Block a user