Advance WebGPU volume and bounded workflows

This commit is contained in:
mes123456
2026-08-14 18:08:29 -04:00
parent 3da1dfc804
commit 68d50f810f
119 changed files with 9028 additions and 430 deletions

View File

@@ -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)