Scenario Blender Grease Pencil 标志

Scenario Blender Grease Pencil

组织
scenario-labs
scenario-blender-grease-pencil

适用于使用 Python 在 Blender 5.x 中通过 Grease Pencil 绘图或制作动画:2D 或 2.5D 插画、逐帧动画、剪纸式或分部件的 2D 角色、带压力变化的笔画、带孔的填充形状、中间帧和插值、洋葱皮、Line Art 轮廓、在 3D 网格上绘制笔画、NPR 或混合动态图形。也适用于 GP 代码出错(GPENCIL、frame.strokes、grease_pencil_modifiers)、填充不显示、渲染颜色过暗,或无法通过脚本运行绘图笔刷的情况。

Add to TypingMind

概览

发布者scenario-labs
代码仓库skills
技能名称scenario-blender-grease-pencil
星标数
970
复刻数
114
附带文件
5
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 scenario-labs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Scenario Blender Grease Pencil AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/scenario-labs/skills/tree/main/skills/dcc/blender/scenario-blender-grease-pencil
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scenario-labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/dcc/blender/scenario-blender-grease-pencil .claude/skills/scenario-blender-grease-pencil
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Scenario Blender Grease Pencil,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Scenario Blender Grease Pencil。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Scenario Blender Grease Pencil 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Grease Pencil (v3, Blender 5.2)

Expert Grease Pencil work keeps every drawing editable and redrawable, puts meaning in the structure (which object, which layer, which key) and judges the result in motion. The agent draws through the data API (drawings are curves with attributes), builds characters the way 2D studios rig them, and reviews rendered frames instead of a viewport it cannot flip. If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add scenario-labs/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.

REQUIRED BACKGROUND: scenario-blender-expert (execution channel, review loop, 5.2 API changes). Shot planning, boards and animatics: scenario-blender-previs-storyboard. Mesh animation principles: scenario-blender-animation.

Toolkit: scripts/bx_gp.py (tested on 5.2.1). import sys; sys.path.append("<this skill>/scripts"); import bx_gp as G.

Stance (the expert delta)

  • Tom Viguier (Andarta, Ewilan's Quest): the rig must never block redrawing. One GP object per physical element (about 60 for a lead character), parented, mostly FK by object transforms; layers inside each element by graphic logic (line above color); sculpting as the deformer; no armature weight painting on drawings, because every redraw would need new weights.
  • Tom: interpolate only "sculpted" pairs. Two keys interpolate cleanly only with the same number, order and color of strokes and the same points. Otherwise redraw, or "clip" to the nearest drawing instead of accepting distortion. Native interpolation ignores object animation: key transforms separately.
  • Falk David (GP module lead): fill is geometry, not material. A stroke fills when fill_id != 0; strokes sharing an id fill together with even-odd holes; hide_stroke hides the outline. Material fill toggles are deprecated and holdout "eraser fills" (Grant Abbitt's 4.4 method) are obsolete.
  • Grant Abbitt: the layer stack carries meaning and materials are paint buckets. Lines on top, a shadow layer (Multiply, lowered opacity, masked by the fills) in between, fills at the bottom. Editing a material recolors every stroke using it. Lock what you are not editing: erasers and sculpt act on all unlocked layers.
  • Elijah Sheffield: predictable color first. Standard view transform, flat unlit shading, white world. Verified trap: new layers have use_lights=True, and lit layers take their ambient from World.color (default 0.05), not from the world node tree, so a flat palette renders at about a quarter of its value.
  • Tom: multiplane discipline and layout first. Every 2D element parallel to the camera, a camera that never changes axis, 3D only where it saves time; camera, cuts and parallax are settled in layout, not discovered in compositing. Between objects, depth decides who draws on top.
  • Michael Weigl: motion reveals the surface. A painterly still breaks once it moves; judge 2.5D as a sequence. Sort groups of strokes (mesh islands), never individual strokes, and bake procedural output back to editable strokes.
  • Pablo Fournier (Blender Studio): design the shadows. Replace blobby 3D shading with blocky, drawn light and shadow shapes (a light and a shadow material per part). Fills are flat: use many small fills on curved surfaces, not one big fill pushed forward.

Establish first

InputChangesDefault when silent
Deliverablestill, frame-by-frame shot, cutout rig, hybrid motion graphics, 2.5D over 3Dframe-by-frame shot
Formatresolution, fps, length1920 x 1080, 24 fps keyed on twos [added]; social motion graphics: 1080 x 1920, 12 fps, 60 frames (Elijah)
Lookflat or lit, line systemflat (unlit layers, Standard); ink line with pressure taper
Line systemPEN constant width (matches Line Art, Elijah) or INK_PEN pressure on radius (cartoony, Grant) or PENCIL (pressure on radius and opacity)INK_PEN
Palettematerial colorshex sRGB values, one material per paint bucket
Cameraortho multiplane or perspectiveortho, front view, drawing plane XZ
Who edits nexthow much stays procedurala human animator: everything bakes to editable strokes

Workflow

  1. Stage and layout. cam = G.scene_2d(res, fps, frame_range, ortho_scale) (ortho camera at -Y, Standard, background). Plan the multiplane: which elements are separate objects and their depth order. Compute px = G.px_size(); line width in pixels is 2 * radius / px. GATE: a test render shows the frame; planned line widths are at least 1.5 px [added].
  2. Structure. G.new_object(name, layers=("Fills", "Shadow", "Lines")) per element (bottom to top, unlit), parent parts, place origins at joints. G.material(ob, name, stroke=hex, fill=hex) once per bucket. GATE: [l.name for l in ob.data.layers] matches intent; G.draw_order(objs) lists front to back as designed.
  3. Draw. Keys first: d = G.key(ob, "Lines", frame). Lines: G.add_stroke(d, G.smooth_path(control_pts), radius, pressure=G.taper(n), brush="INK_PEN", material=i); overlap then trim rather than landing ends exactly (Grant). Fills: G.add_shape(d, outline, holes=[...], material=i) on the Fills layer, outline on Lines. Bulk: G.add_strokes(d, specs) (3000 strokes in 0.04 s). Fix shapes with G.grab, G.dissolve, G.edit_op(ob, "stroke_smooth", ...). GATE: G.verdict(G.report(ob)) is clean and a full-resolution G.render_frame shows no gaps, leaks or overhangs.
  4. Color and shadow. Shadow layer: blend_mode='MULTIPLY', opacity lowered, use_masks=True, mask_layers.add(fills); paint the shadow shape past the edge and let the mask clip it; design it blocky (Pablo). Lit look: use_lights=True plus World.color as ambient plus lamps (verified: a sun only scales value on a flat drawing, a point light gives a gradient). GATE: sampled pixels match the palette under Standard.
  5. Animate. Replacement key G.key(..., mode="blank"), additive mode="copy", hold or cycle mode="instance" / G.cycle(...), end an exposure with G.end_exposure. Every visible layer needs a key at or before frame_start (Elijah). Cutout motion: key object transforms (FK). In-betweens: check G.match(dA, dB), then G.interpolate(ob, layer, frame, step=2, type, easing) (native, segment around frame) or G.inbetween(ob, layer, a, b, frames, spacing=[...] or ease=...) for the animator's own spacing, clip=True when the pair is different. GATE: G.exposures(ob, layer) per layer, G.render_strip(path, frames) read left to right for timing and pops, G.onion(path, frame, before, after) for arcs and spacing.
  6. 2.5D (optional). Outlines: G.lineart(source, radius=width_m) (the modifier radius is the line width). Strokes on meshes: G.project_to_surface(pts, mesh) and discard strokes with missed or occluder-captured points (Pablo's failure modes). Relight: G.relight(ob, canvas, light_dir, shadow, light). Procedural strokes: Geometry Nodes Curves to Grease Pencil with Instances as Layers off and a fill_id attribute, then apply to bake (procedures P7). Depth reorder without changing the image: G.push_depth(ob, delta). GATE: a moving render (strip or playblast) where the surface does not read as 3D (Weigl) and fills do not poke through (Pablo).
  7. Deliver. Render frames or video with the scene camera; keep the .blend editable (no applied procedural stage the animator still needs). GATE: every object's verdict clean, strip and final frames looked at, list what was not verified.

Numbers

ValueMeaningSource
radius = half line width (m)width px = 2 x radius / px_sizeverified
px_size = ortho_scale / max(res_x, res_y)ortho; perspective uses depth x 2 tan(fov/2) / resverified
0.01 mpoint radius while the radius attribute is absentverified
Line Art radius default 0.0025 mis the line WIDTH: points get radius/2verified
Elijah's Line Art thickness 60 (4.x)about 0.006 m width in 5.2[inferred]
use_lights True, World.color 0.05new layers render flat colors at about 25 % valueverified
set_uniform_thickness(thickness=t)sets radius t/2verified
~60 parts, ~100 rig versions, 2 weeks rig for a leadEwilan's Quest cutout scaleTom
12 fps, 60 frames, ortho scale 8, Subdivision 2 to 3 on shape mesheshybrid motion graphicsElijah
Stabilizer 40 px / 0.9 bundled, Elijah uses ~60 on demandonly for long curvesElijah, verified defaults
1 light bounceenough for stylized relightingWeigl
GP anti-aliasing aa_samples 8scene.grease_pencil_settingsverified

Quality gates

Measurable (per object, every stage):

python
for ob in gp_objects:
    print(ob.name, G.verdict(G.report(ob)))   # first key vs frame_start, lit-without-light,
                                             # invisible strokes, stray micro-strokes, sub-pixel lines,
                                             # fill/stroke alpha 0, empty masks; info: instances, unused materials
print(G.draw_order(gp_objects))               # front -> back vs the staging plan
print(G.match(dA, dB))                        # before any interpolation

Visual (open every image): G.render_frame(path, f) at full resolution for line quality, trims, fill gaps and palette; G.render_strip(path, range(a, b, 2)) for timing, holds and pops; G.onion(path, f, before, after) for spacing and arcs (it includes object motion and modifiers, which the viewport onion skin ignores, Falk and Rik); for 2.5D a sequence, never a still. Score against references/critique.md.

Common mistakes

MistakeLooks likeFix
Layers left at use_lights=True with no lampsflat palette renders dark brown or graylayer.use_lights=False, or raise World.color and add lamps
Fill expected from the materialshape outline onlystroke.fill_id=1, cyclic=True; holes share the id
hide_stroke=True with fill_id=0stroke vanishesgive it a fill id or show the stroke
attributes.new("radius") on a drawing with strokesexisting strokes disappear (radius 0)fill defaults first (G.add_strokes does)
First key after frame_startdrawing pops in, empty frames at the startkey at frame_start (Elijah)
Interpolating different drawingssmeared, twisted in-betweensG.match; redraw, resample, or clip (Tom)
Rigging drawings with armature weightsevery redraw breaks deformationobject-level cutout, sculpt as deformer (Tom)
Stroke-level depth sortingartist's layer order destroyedsort groups (objects or mesh islands) (Weigl)
One big fill on a curved surfacefill pokes through the meshmany small fills near the surface (Pablo)
Deleting stray pointsstroke splits in twoG.dissolve keeps it continuous (Pablo)
Line Art radius set like a stroke radiusoutline half the intended weightLine Art radius = width = 2 x stroke radius
Judging 2.5D on a stilllooks painterly, reads as 3D in motionrender the sequence (Weigl)
Calling draw brushes from a scriptInvalid operator call, nothing drawnwrite strokes as data; see 5.2 notes

Blender 5.2 notes

  • Types: object GREASEPENCIL, data bpy.data.grease_pencils; layer.frames.new(n).drawing.add_strokes([...]); old frame.strokes, point.co, pressure, strength, GPENCIL and object.grease_pencil_modifiers are gone. Modifiers are regular: ob.modifiers.new(n, 'GREASE_PENCIL_NOISE'), Line Art is 'LINEART'.
  • Stroke and point helpers are Python wrappers: re-fetch after adding or removing strokes, never cache them.
  • grease_pencil.brush_stroke and sculpt_paint have no exec: called with a stroke list in a live session they log "Invalid operator call" and draw nothing (verified GUI); replayed mouse events via event_simulate also drew nothing. Draw and sculpt strokes are data; headless edit operators (stroke_smooth, stroke_simplify, set_uniform_thickness, stroke_subdivide, outline, join_fills, set_curve_type) run in Edit mode through G.edit_op. In a live session G.gui_trim (lasso Trim), G.gui_erase_box and G.gui_reproject(type='SURFACE') work with a 3D-view override.
  • interpolate_sequence runs headless on the active object and layer, fills only the segment around the current frame and inserts BREAKDOWN keys; easing via type and easing.
  • frames.new or frames.copy onto an existing frame raises "Frame already exists"; get_frame_at(n) returns the key exposed at n (None before the first key).
  • layer.mask_layers.add(layer) is the 5.2 mask API; layer groups gp.layer_groups.new, gp.layers.move_to_layer_group; layers can parent to an object or bone (layer.parent, parent_bone) and carry their own transform.
  • Line Art objects made by object.grease_pencil_add(type='LINEART_OBJECT') have lit layers; objects hidden from render are ignored by Line Art; lineart_bake_strokes bakes the whole scene range.
  • GN Curves to Grease Pencil drops plain curves while Instances as Layers is on (default); Set Material alone no longer fills (5.1): store an INT fill_id on the curve domain.

References

  • references/expert-notes.md: each expert's principles, judgment and disagreements with timestamps; load when making a style or pipeline decision.
  • references/procedures.md: tested raw-bpy procedures (P1 to P8) and bx_gp recipes (cutout character, frame-by-frame, interpolation, 2.5D); load before writing GP code.
  • references/critique.md: the rubric for judging line, fill, staging, timing and 2.5D renders; load at every review gate.
  • references/sources.md: the five source videos, what each is best for, best timestamps.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Scenario Blender Grease Pencil AI 技能有什么作用?

适用于使用 Python 在 Blender 5.x 中通过 Grease Pencil 绘图或制作动画:2D 或 2.5D 插画、逐帧动画、剪纸式或分部件的 2D 角色、带压力变化的笔画、带孔的填充形状、中间帧和插值、洋葱皮、Line Art 轮廓、在 3D 网格上绘制笔画、NPR 或混合动态图形。也适用于 GP 代码出错(GPENCIL、frame.strokes、grease_pencil_modifiers)、填充不显示、渲染颜色过暗,或无法通过脚本运行绘图笔刷的情况。

为什么在 TypingMind 中使用 Scenario Blender Grease Pencil?

因为您只需安装一次,就能搭配任何模型使用。Scenario Blender Grease Pencil 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Scenario Blender Grease Pencil?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/scenario-labs/skills/tree/main/skills/dcc/blender/scenario-blender-grease-pencil。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Scenario Blender Grease Pencil?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Scenario Blender Grease Pencil 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Scenario Blender Grease Pencil 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Scenario Blender Grease Pencil AI 技能免费吗?

是的。scenario-labs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇