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★ 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_tofor render-only reruns, so the delivered.hipis 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/errorof a call that still saysok: trueor fails later: readstdout_tailevery time, and printnode.errors()for the nodes you cook. In VEX always assignprim(),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, orffprobe -count_frames), never trust the log line. - Test on a few frames before every full run and look at them (
video_framesmakes 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
dcc_build - 02
video_frames - 03
media_info - 04
analyze_image - 05
run_script - 06
write_text_file - 07
read_text_file - 08
show_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), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…