CommunityImagemgithub.com

dnlgalleguillos/gauge-reference

Recrie um visual a partir de uma imagem de referência ou capturas de tela do editor de nós no Blender, depois meça a correspondência — paleta, exposição em pontos, contraste, matiz, foco, estrutura — e receba correções numéricas. Inclui início/término seguro do espaço de trabalho e um leitor headless de árvore de nós. Use quando for solicitado a copiar, igualar ou replicar uma imagem ou captura de tela de shader/Geometry Nodes.

O que é gauge-reference?

Esta skill automatiza o processo de replicar uma imagem de referência ou captura de tela do editor de nós no Blender, transformando a requisição visual em métricas numéricas precisas. Ela estabelece um espaço de trabalho isolado com um único comando, lê capturas de tela de nós para transcrever a árvore de nós em texto, e mede propriedades da imagem como luminância média, contraste, saturação, paleta de cores e nitidez (foco). Após construir a árvore de nós correspondente, a skill realiza uma comparação quantitativa entre o render e a referência, fornecendo correções específicas para exposição (em pontos), contraste, matiz por canal e erro estrutural. O processo é iterativo: o usuário faz um ajuste, renderiza novamente em baixa resolução (50% e 24 amostras) e mede até que todas as verificações passem nos limites definidos (exposição dentro de 0,35 pontos, contraste entre 0,85-1,15, matiz dentro de 0,04, erro <= 0,08). A skill prioriza a correspondência estrutural (enquadramento, formas, direção da luz) sobre a cor, e a cor sobre os detalhes, e recomenda corrigir a exposição antes da cor para evitar medições distorcidas. Inclui comandos seguros de início e término do workspace para não poluir a cena.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dnlgalleguillos/blender-gauge/tree/HEAD/skills/gauge-reference

Installed? Explore more Imagem skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Gauge reference

"Make it look like this" is only finished when a number says so. This skill turns a reference into measurements, builds in an isolated collection, and compares every render against the target.

Authority order

  1. What the user wrote (explicit values and rules).
  2. Node screenshots: they decide connections and settings.
  3. The reference render: it decides appearance. Anything you infer rather than read is an assumption: list it in your reply and let the user confirm.

Workflow

  1. Begin an isolated workspace: scripts/workspace.py action=begin name=match1 (saves camera, world, engine, view settings; creates the collection).
  2. Read the screenshots with references/reading-node-screenshots.md: write the graph as text (node, key values, links) before building. Small numbers in a screenshot are easy to misread; flag the uncertain ones.
  3. Measure the reference: scripts/ref_report.py image=ref.png gives mean luma, contrast, clipping, saturation, a palette of sRGB hex with shares and a 4x4 sharpness map (where the focus is). scripts/ref_colors.py reads exact colours at points; the hex is what you see, linear is what goes into a shader.
  4. Build the nodes with gauge.node_build / gauge.gn_make (see gauge-materials, gauge-geonodes), then re-read what you built with scripts/node_text.py and compare it with your transcription.
  5. Render small, then scripts/ref_match.py image=mine.png reference=ref.png. Each failed check carries one correction with a number: exposure in stops (multiply light by 2^-stops), contrast ratio, tint per channel, structural error.
  6. Change one thing, render, measure again. Stop when the gate passes (defaults: exposure within 0.35 stops, contrast ratio 0.85-1.15, tint within 0.04, error <= 0.08).
  7. End: workspace.py action=end restores the scene and lists what it would delete; pass confirm=true only when the user agrees.

Tools

ScriptAnswers
ref_report.pywhat is in this image (and how far is it from another)
ref_colors.pyexact colour at a point
ref_match.pyis my render close enough, and what to change
node_text.pywhat does this material / group / world / compositor tree contain
workspace.pybegin / end without leaving a mess

Rules

  • Match structure first (framing, shapes, light direction), colour second, detail last.
  • Fix exposure before colour: a 1-stop error shifts every colour measurement.
  • A render at 50 % size and 24 samples is enough to judge all of the above.
  • Reference images with compression or a different gamma are not exact: trust the palette and ratios, not single pixels.

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

Habilidades Relacionadas