Files
workinf_Blender_Wasm/web/app/public/teach/lessons/ch29.json
mes123456 c47fa79102
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
feat(web): viewport transform parity — offscreen backend, per-island pivots, ortho sizing
- Offscreen worker backend publishes the camera probe, so the G/R/S modal's
  pointer basis, transform gizmo and wireframe work on both renderers.
- Edit-mode INDIVIDUAL_ORIGINS pivots every connected island on its own centre,
  committed as one grouped transaction (T(P)·R·S·T(-P) in object space).
- Gizmo hits carry the pivot index; orthographic views size the axes from the
  visible world height instead of the 45° fov fallback.
- View-menu navigation no longer switches workspace when a viewport is already
  on screen (the engine workspace transaction dropped the editor out of Edit).
- Modal commits queue behind the shared command tail, so a trailing
  editEditorContext cannot consume the user's first Ctrl+Z.
- Floating sidebar rotation field confirmed in degrees; headed cases for the
  offscreen path, per-island pivots and the sidebar unit, plus receipts/docs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 07:48:17 +08:00

45 lines
1.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"schemaVersion": 1,
"id": "ch29",
"number": 29,
"part": "part-f",
"title": "脚本:Text Editor、Python Console 与 Info",
"level": "进阶",
"workspace": "Scripting",
"minutes": 8,
"summary": "切到 Scripting 工作区,认识文本编辑器、Python 控制台和 Info 编辑器三者分工。",
"objectives": ["切换到 Scripting 工作区", "找到文本编辑器与控制台", "读取 Info 最近操作行"],
"setup": { "fixture": "/teach/fixtures/basic-scene.blend", "workspace": "Layout" },
"steps": [
{
"id": "ch29-s1",
"title": "切换到 Scripting 工作区",
"text": "点击顶部「Scripting」,布局切换为脚本相关的编辑器组合。",
"target": { "role": "button", "name": "Scripting" },
"checks": [
{ "kind": "scene", "workspace": "Scripting", "label": "当前工作区是 Scripting" }
],
"demo": [{ "kind": "click", "target": { "role": "button", "name": "Scripting" } }]
},
{
"id": "ch29-s2",
"title": "文本编辑器与 Python 控制台",
"text": "文本编辑器保存 .py 脚本;Python 控制台逐行执行,适合试验 bpy 调用。",
"target": { "css": ".text-editor-area" },
"checks": [
{ "kind": "count", "target": { "css": ".text-editor-area" }, "atLeast": 1, "label": "文本编辑器存在" },
{ "kind": "count", "target": { "css": ".console-area" }, "atLeast": 1, "label": "Python 控制台存在" }
]
},
{
"id": "ch29-s3",
"title": "读取 Info 最近操作",
"text": "Info 编辑器记录最近一次引擎操作,与状态栏同源,可用来核对脚本实际执行了什么。",
"target": { "testid": "info-engine-line" },
"checks": [
{ "kind": "exists", "target": { "testid": "info-engine-line" }, "label": "Info 引擎行可见" }
]
}
]
}