How vuyani-magibisela/blendersage works
BlenderSage is a Blender extension for guided, declarative modeling lessons. Learners start the bundled lesson or open a JSON lesson in the sidebar; runtime parses it, tracks navigation, periodically snapshots the scene and evaluates step checks, then displays instructions, target cues, and editor hints. Completion enables progression, while learners can navigate, skip, confirm eligible steps, or bind a selected object as a target. The graph emphasizes these runtime stages and lifecycle cleanup. README content was empty; unsampled sidebar and lesson-schema details are represented only where the source index and excerpts support them.
Main entry points: runtime.py Lesson Runtime · sidebar.py Lesson Sidebar · operators.py Lesson Actions · overlay.py Guidance Overlay
Components 13
Lesson Definition
- Lesson JSON
lessons/desk_organiser.json - Lesson Schema
core/tutorial_schema.py
Blender Interface
- Lesson Sidebar
blender/guidance/sidebar.py - Lesson Actions
blender/guidance/operators.py - Guidance Overlay
blender/guidance/overlay.py
Lesson Runtime
- Lesson Runtime
blender/guidance/runtime.py - Lesson Session
core/session.py - Hook Lifecycle
blender/lifecycle.py
Scene Evaluation
- Scene Snapshot
blender/state.py - Step Checks
core/checks.py - Target Resolution
core/targets.py
Other components
- Learner
- Blender
Connections 13
- Learner → Lesson Sidebar: uses
- Lesson Sidebar → Lesson Actions: invokes
- Lesson Actions → Lesson Runtime: dispatches
blender/guidance/operators.py - Lesson JSON → Lesson Runtime: loads
blender/guidance/runtime.py - Lesson Runtime → Lesson Schema: parses
blender/guidance/runtime.py - Lesson Runtime → Lesson Session: creates
blender/guidance/runtime.py - Lesson Runtime → Hook Lifecycle: registers hooks
blender/guidance/runtime.py - Lesson Runtime → Scene Snapshot: snapshots
blender/guidance/runtime.py - Lesson Runtime → Step Checks: evaluates
blender/guidance/runtime.py - Step Checks → Target Resolution: resolves
core/checks.py - Lesson Runtime → Guidance Overlay: registers drawing
blender/guidance/runtime.py - Guidance Overlay → Lesson Runtime: reads lesson state
blender/guidance/overlay.py - Blender → Lesson Runtime: hosts