Logo Procedural Blender Nodes

Procedural Blender Nodes

Cộng đồng
gokayfem
procedural-blender-nodes

Builds, debugs, and art-directs procedural Blender node systems from Python: Geometry Nodes generators and modifiers, Shader Node materials, simulation and repeat zones, analytic animation, and compositor looks, as readable node groups with artist controls that work on new input geometry. Ships nodekit (a graph builder and inspector), a tested NK node-group library (curve placement, shapes, scatter, motion, materials, post), templates, and a checker. Use when the user wants a Geometry Nodes setup, a procedural asset or generator in Blender, a bpy script that creates node trees, node-based materials or effects, or wants such a script fixed, ported to Blender 5.x, organised, or explained; also for recreating a reference (image, clip or description) as an editable node system. Not for Unity/Unreal/Houdini graphs, three.js, or plain mesh modelling without nodes.

Tổng quan

Nhà phát hànhgokayfem
Kho mãvideo-to-blender
Tên kỹ năngprocedural-blender-nodes
Sao
85
Bản fork
7
Tệp đi kèm
41
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 41 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được gokayfem công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Procedural Blender Nodes trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/gokayfem/video-to-blender/tree/main/skills/procedural-blender-nodes
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gokayfem/video-to-blender.git /tmp/video-to-blender
mkdir -p .claude/skills
cp -r /tmp/video-to-blender/skills/procedural-blender-nodes .claude/skills/procedural-blender-nodes
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Procedural Blender Nodes trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Procedural Blender Nodes ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Procedural Blender Nodes với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Procedural Blender Nodes

Treat a node system as an explanation of an effect: decide what it must produce and on what inputs, build it as named node groups an artist can read, expose the few controls that matter, and prove it by rendering it, changing those controls, and running it on other inputs.

Workflow

  1. Target. State the effect: what geometry, materials and motion; the input it runs on (a curve, a mesh, a point set, nothing); what an artist should be able to change; the shot or use that judges it.
  2. Route. Pick the technique and a starting template from references/subject-routing.md: curve-space layout, surface scatter, instanced assemblies, mesh modelling, analytic animation, simulation zone, shader-only.
  3. Assemble from the library. Find groups with python3 scripts/nodes_tools.py search <words> or references/library-index.md, and instance them (Graph.group(builder(), ...)). Do not rebuild what the library has; it is tested.
  4. Build through nodekit. Write a Python build script: nodekit.graph.Graph creates each group (inputs with descriptions, ranges and panels; frames around each block), a top-level modifier group composes them, and the script creates the scene and saves the .blend. The .blend's node graph is the deliverable; the script makes it reproducible. See references/nodekit-guide.md.
  5. First result fast. One part, its test input, one render: python3 scripts/nodes_tools.py try -- --module <your.module> --root <dir> --png out/try.png. Look at the image. Then grow part by part, judging the full assembly, not parts alone.
  6. Refine in order: silhouette and proportions, layout and density, materials, light and look, motion. Calibrate against the reference (if any) with measurements over time or across views, not one frame.
  7. Controls. A Primary panel with a handful of macro controls; detailed panels per part; presets as JSON. Sweep each primary control and look at the results (scripts/sweep.py).
  8. Validate. scripts/validate.py reopens the saved file: zero node warnings, zero lint, evaluation time, camera clearance. Run the effect on other inputs. For animation, render a continuous sequence and check it for sliding, popping and flicker. Rebuild twice and diff the graph dumps.

Run the scripts from this skill's directory. They need Python 3 and Blender 5.2+ ($BLENDER, blender on PATH, or the macOS app); nodes_tools.py starts Blender itself.

Conventions

  • Python builds native nodes. Every tree is built with Graph (Geometry, Shader or Compositor). Sockets are found by name among enabled sockets ("Value#1" for duplicates); set node properties via props= before inputs, because properties change which sockets exist.
  • Groups explain. Name groups for what they make (NK Curve Parcels, My Effect Roof), describe every group and input, frame every block with a sentence ("Parcels: split each side into houses"). Split reusable parts into sub-groups. Graph.finish() lays out frames left to right and gives each frame its own Group Input.
  • Time. Animated groups take a Time input in seconds. Only the top-level modifier group reads Scene Time (with Time Scale and Time Offset controls), so parts stay testable and retimable.
  • Space. Model in the input's space (curve space: s along, d left, h up; or object space) and place through the library's frame groups, so the effect follows any curve or mesh.
  • Variation into materials. Store nk_color (FLOAT_COLOR) and nk_rand (FLOAT 0–1) per piece; materials read them with an Attribute node (type GEOMETRY) after realize.
  • Shared groups build once (@nodegroup or nodekit.graph.once). Rebuilding a group other groups use clears its interface and silently unlinks them.
  • Analytic first. Periodic or driven motion is a function of Time. Use a simulation zone only for state: accumulation, growth, collisions, anything whose next frame depends on the last.

Hard rules (these break Blender 5.2 scripts)

  • Modifier inputs are not ID properties: use nodekit.inspect.set_modifier_inputs(mod, {"Name": value}), never mod["Socket_2"].
  • Never rebuild a shared node group in place after other groups use it (see Conventions).
  • Mode switches on Transform, Resample and Set Curve Normal, and Remove Named Attribute's pattern mode, are input sockets, not node properties. Texture outputs are named "Factor".
  • Field-default sockets (Extrude Mesh Offset) ignore constants; link a node.
  • In background mode, drivers update only for the window's scene: set bpy.context.window.scene before frame_set, render with bpy.ops.render.render(scene=...).
  • EEVEE world volumes swallow the sun: do distance haze in the compositor on premultiplied geometry.
  • Always run Blender as blender -b --factory-startup --python script.py -- args; pass negative CLI values as --x=-1.
  • Every input gets a description, every group a description; zero node warnings, zero check_groups lint.

The full list with fixes is in references/blender-api-notes.md.

Reference routing

Read only what the task needs:

FileRead when
references/subject-routing.mdstarting from a subject ("a fence along a path", "ivy over a statue"): technique, groups, template
references/library-index.mdchoosing groups: every NK group with inputs, summary and uses
references/nodekit-guide.mdwriting the build script: Graph API, zones, frames, layout, inspect, the scripts
references/geometry-nodes-patterns.mdfields and domains, instancing vs realize, attributes into materials, booleans, budgets, per-frame cost
references/animation-and-simulation.mdmotion: analytic vs simulation zone, integrated phase, planted feet, springs, wind, loops, caches
references/controls-and-presets.mddesigning the modifier panel, macro controls, presets, sweeps
references/materials-and-look.mdShader Node materials, attribute variation, EEVEE, AgX, light, compositor haze and glow, calibration
references/validation-and-review.mdbefore delivering: determinism, reopen-and-validate, reuse, temporal checks, honest reporting
references/blender-api-notes.mda Blender 5.x API error or surprise
../../prompts/reference-to-nodes-prompt.md (repository)recreating a reference video, image or description as a node system

Templates in templates/ are complete, render-verified build scripts (gallery in the repository README); each builds a .blend whose top modifier group runs on its own test input and on others.

Output expectations

When building an effect:

  • Deliver the build script and the .blend it saves. The .blend holds native node groups, not baked geometry or image sequences (state any image texture you use and why).
  • The top-level modifier group has a Primary panel, then per-part panels; every group and input is described.
  • End with a short guide: the primary controls, what each part group does, how to run it on new input, and how it was validated (check/validate output, renders looked at, inputs tried).
  • Separate what is implemented from what is approximated or out of scope; do not call an analytic sway a cloth simulation, or a texture mask modelled geometry.

When fixing or porting an existing node script:

  • Identify how it builds trees and where it breaks on Blender 5.2 (modifier inputs, socket names, modes as inputs).
  • Preserve the graph's interface (input names and order) unless asked; call out any change.
  • Fix correctness first, then readability (frames, descriptions, layout), then performance.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Procedural Blender Nodes làm được gì?

Builds, debugs, and art-directs procedural Blender node systems from Python: Geometry Nodes generators and modifiers, Shader Node materials, simulation and repeat zones, analytic animation, and compositor looks, as readable node groups with artist controls that work on new input geometry. Ships nodekit (a graph builder and inspector), a tested NK node-group library (curve placement, shapes, scatter, motion, materials, post), templates, and a checker. Use when the user wants a Geometry Nodes setup, a procedural asset or generator in Blender, a bpy script that creates node trees, node-based m...

Vì sao nên dùng Procedural Blender Nodes trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Procedural Blender Nodes là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Procedural Blender Nodes trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/gokayfem/video-to-blender/tree/main/skills/procedural-blender-nodes. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Procedural Blender Nodes?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Procedural Blender Nodes với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Procedural Blender Nodes với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Procedural Blender Nodes có miễn phí không?

Có. Kỹ năng này được gokayfem phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇