feat: add grease-pencil-rosette example (GPv3 attribute API drift witness)#57
Merged
Conversation
…ness) Grease Pencil v3 is the largest bpy API break in the 4.x-to-5.x window and nothing in the gallery touched it. This example draws five nested neon rose curves through the attribute-based GPv3 surface and asserts the divergence each version actually exposes: on 4.5 LTS GPv3 lives at grease_pencils_v3 while bpy.data.grease_pencils is still legacy GPencil (frame.strokes, no .drawing); on 5.x legacy is deleted and GPv3 owns the grease_pencils name. It also witnesses that stroke points are views over lazily materialized attribute layers, round-tripping every closed-form position through the raw POINT buffer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
examples/grease-pencil-rosette— five nested neon rose curves drawn entirely with the Grease Pencil v3 attribute-based API (layer →frames.new(1).drawing→add_strokes([counts])→ per-pointposition/radius/opacity/vertex_color). GPv3 is the largest bpy API break in the 4.x-to-5.x window and nothing in the gallery covered it; this is the strongest drift witness the gallery can hold.API contract witnessed
bpy.data.grease_pencils_v3(GreasePencilv3);bpy.data.grease_pencilsstill holds legacy GPencil whose frames carry.strokesand have no.drawing— the trap is asserted directly against a scratch legacy datablock, not just avoided.grease_pencilsname;grease_pencils_v3andbpy.types.GPencilStrokeno longer exist.pt.radius/pt.opacity/pt.vertex_colorthrough the point view createsradius,opacity,vertex_color(POINT) andcyclic(CURVE) layers indrawing.attributeswith the expected domains/types.positionPOINT buffer viaforeach_get(worst deviation observed: 5.9e-08).GREASEPENCIL;bpy.data.materials.create_gpencil_dataworks identically on both versions.Visual notes
Neon-sign composition: unlit (
use_lights = False) tapered strokes, per-ring hue sweep cyan→violet→magenta→red, Standard view transform (AgX desaturates unlit saturated ink), a single area light painting a soft halo on the wall behind the rosette, floor horizon for grounding. Inspected at full 1280×720 and at thumbnail scale; nothing clipped, no visible lights, no blown highlights.Integration
gallery.json entry,
.cursor-plugin/plugin.jsonexamples array,blender-smoke.ymlstep, README gallery row + counts (16→17), AGENTS.md/CLAUDE.md counts, ROADMAP candidate-pool follow-ups, regenerateddocs/gallery/viascripts/build_gallery.py. No release-owned version fields touched.Test plan
Proven by live run (local):
--outputrender on 5.1.2 (EEVEE) — hero/preview webp generated from the inspected renderpython scripts/build_gallery.py— 17 detail pages, only expected files changedEstablished by inspection only:
validate-counts,validate-manifest) — wired per convention, verified against the greps they use, but exercised only by this PR's CI--engine cyclesfallback) — code path mirrors bmesh-gear; check-only was live-run on 4.5🤖 Generated with Claude Code