Command Palette

Search for a command to run...

Назад к скиллам
скилл № 93239

dcc-destruction-houdini

Destroy a 3D model in Houdini with a rigid-body (RBD) simulation — a building, a set or an object collapsing, breaking apart, being knocked over — plus dust…

БесплатноБез исполняемых скриптов
szprivateот szprivate★ 53 звезды на GitHub

Установить dcc-destruction-houdini в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Destruction in Houdini (RBD, dust, cloth)

Houdini has no live mode: everything runs headless through dcc_build(app="houdini", mode="batch") (in the dcc tool pack: load_tools("dcc") if it is not in your list). You write ONE Python script for hython that builds the whole network, cooks it and writes caches and frames; every change is an edit to that script and a new dcc_build call. Never hand-patch a scene.

The script

One file, parameters at the top, steps you can switch on and off, cached per step. Per-run settings (which steps, which camera, sim numbers) go in the params argument of dcc_build, which the script reads with

params = globals().get("DCC_PARAMS") or json.loads(os.environ.get("DCC_PARAMS", "{}"))
STEPS = params.get("steps", "source,fracture,sim,flags,render,encode").split(",")

(DCC_PARAMS_FILE has the same JSON for large params.) Do not use side .json files or inherited environment variables for this: an old file silently changes a later call. A camera or look change re-runs only render and encode from the caches. Cache every step to .bgeo.sc files.

  • timeout_minutes (default 15 min, max 480) for long calls; frames="1-96" renders a sequence through the OpenGL ROP when the script does not render itself.
  • Pass a scratch save_to for render-only reruns, so the delivered .hip is not overwritten.
  • Output only comes back when the run ends: write your own log file with a line per step.
  • A node error does not fail the call. A VEX compile error shows up only as text in stdout_tail / error of a call that still says ok: true or fails later: read stdout_tail every time, and print node.errors() for the nodes you cook. In VEX always assign prim(), point(), findattribval() to a TYPED local first (float a = prim(1,"x",i);): used inside an expression they are ambiguous or silently read only the x component.
  • Render and encode in SEPARATE calls: hython keeps the cache files open while rendering, and an encode in the same process failed with "Too many open files" (a truncated mp4). After encoding, verify the frame count (media_info, or ffprobe -count_frames), never trust the log line.
  • Test on a few frames before every full run and look at them (video_frames makes a contact sheet from a video or a folder of frames).

1 Source

  • Bring the model in as USD. Read the stage's up axis and metersPerUnit, convert to Y up, metres.
  • USD mesh prims arrive as <object>/<object>_NNN: use the parent name as the piece name.
  • A mesh of lap siding is one mesh with many boards: split it into connected components, each a piece.
  • Frame 1 must show the intact model. Check it first.

2 Fracture: one material per structural element

rbdmaterialfracture::3.0, wood mode, Fracture per Piece on (else the grain follows the wrong axis). Grain lines run along each piece's longest axis, cuts across it; splinter density/length pull points off the cut planes; randomness on grain and cut spacing breaks the regularity. Look at the building and give each element type its own settings (numbers from a 12 m stilt house):

element fracture
siding / cladding boards (thin) one cut across (about 0.75 m), a grain split (0.09 m), short splinters
deck / floor planks 0.27 m wide along the long axis, a cut across every 1.9 m
wall sheathing panels about 1.1 m, light splinters
roof panels about 1.3 m (between rafters), no grain split
posts, mast, girders (thick) NOT equal segments: 1–2 jagged cuts (2.3–3.2 m spacing), 2–3 long slivers, the longest splinters
braces one mid snap
glass scatter points 5, radial cracks 8, min width 0.11
gutters, rails, clock, antennas stay whole
a triangular gable wall stays whole (wood fracture fills it into a box / spikes)

Rules that held: keep wood_graindetailsize at 0.15 or more (the default 0.05 used 50+ GB or hung); keep splinters short on thin panels (they poke out of both faces); drop pieces whose centre is outside their source box (stray debris); give every piece a unique name (<source>__<fragment>) and per-piece attributes the constraints need (class, source, upper body or substructure, section). Mark the fracture's cut faces with a prim attribute cutface (the faces in the node's *inside* groups). More pieces cost sim time roughly linearly: 1,500 pieces, 0.3 s/frame; 3,800 pieces, 0.75 s/frame.

3 Joints follow how the building is built

rbdconstraintsfromrules (surface, small search radius) builds the bonds; a prim wrangle on the constraint network (input 2 = the pieces) sets each bond's type and strength by PAIR TYPE. One network mixes types per bond; Glue: strength, impulse_halflife, propagate_rate; Hard: constraint_name "Hard", constraint_type "position" (pin) or "all"; Soft: stiffness, dampingratio, enableangular, angularstiffness, enableplasticity, plasticthreshold.

  • Inside one board / beam (same sour
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01dcc_build
  2. 02video_frames
  3. 03media_info
  4. 04analyze_image
  5. 05run_script
  6. 06write_text_file
  7. 07read_text_file
  8. 08show_in_panel

FAQ

Что делает скилл dcc-destruction-houdini?

Destroy a 3D model in Houdini with a rigid-body (RBD) simulation — a building, a set or an object collapsing, breaking apart, being knocked over — plus dust and simple cloth, rendered as an OpenGL flipbook (or Karma for a single frame). Use for "make the house collapse", "destroy this in Houdini", "RBD destruction", "fracture and simulate", "add dust to the collapse", "render the destruction from another camera".

Как установить скилл dcc-destruction-houdini?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dcc-destruction-houdini запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dcc-destruction-houdini с