Files
workinf_Blender_Wasm/web/tests/fixtures/create-modifier-stack-input.py
mes123456 f3e21c6b98
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
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

18 lines
612 B
Python

import bpy
import pathlib
root = pathlib.Path(__file__).resolve().parents[3]
bpy.ops.wm.open_mainfile(filepath=str(root / "tests/files/web/basic_scene.blend"))
obj = bpy.data.objects["BasicCube"]
array = obj.modifiers.new("Stack Array", "ARRAY")
array.count = 2
bevel = obj.modifiers.new("Stack Bevel", "BEVEL")
bevel.width = 0.1
bevel.segments = 2
other = obj.copy()
other.data = obj.data.copy()
other.name = "StackTarget"
bpy.context.scene.collection.objects.link(other)
other.location.x = 4
bpy.ops.wm.save_as_mainfile(filepath=str(root / "tests/files/web/modifier_stack_scene.blend"), check_existing=False)