Advance WebGPU volume and bounded workflows
This commit is contained in:
@@ -29,6 +29,19 @@ def main(output_path):
|
||||
point.weight = weight
|
||||
point.select = selected
|
||||
|
||||
editable_layer = mask.layers.new(name="WebEditableLayer")
|
||||
editable_spline = editable_layer.splines.new()
|
||||
editable_spline.points.add(1)
|
||||
editable_values = [
|
||||
((0.2, 0.2), (0.1, 0.2), (0.35, 0.4)),
|
||||
((0.8, 0.2), (0.65, 0.4), (0.9, 0.2)),
|
||||
]
|
||||
for point, (co, left, right) in zip(editable_spline.points, editable_values):
|
||||
point.co = co
|
||||
point.handle_left = left
|
||||
point.handle_right = right
|
||||
point.handle_type = "FREE"
|
||||
|
||||
path = pathlib.Path(output_path).resolve()
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
bpy.ops.wm.save_as_mainfile(filepath=str(path), compress=False)
|
||||
|
||||
Reference in New Issue
Block a user