/nuke-vfx:nuke-cattery-inferencefrom nuke-vfx
Documents verified traps in Nuke 17 Cattery/Inference: knob naming, tileSize enumeration, PyTorch import limitations, cat.json version gating, and modelFile blocking behavior. Useful when tracing PyTorch models for Nuke or setting up Inference nodes.
Ships in nuke-vfx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Traps 1-4 measured on NukeX 17.0v2 (nuke-round3 probes and evals, 2026-11-08/09; ClaudeCode/evals/nuke-round3/ANALYSIS.md). Traps 5-8 are production lessons from the 2026-03 DA3 depth integration and obs 267, not re-measured in the evals.
CatFileCreator knob is torchScriptFile. Wrong: cat['torchscriptFile'] (raises). Right:
torchScriptFile (File_Knob), with catFile, channelsIn, channelsOut, modelId, outputScale, and
the button createCatFile. Inference knobs: modelFile, useGPUIfAvailable, halfPrecision,
channelsIn, channelsOut, tileSize, tileOverlap, gpuName. Verify: node.knob(name) is not None
before setting.
Inference tileSize is an enumeration. Wrong: inf['tileSize'].setValue(512) - errors. Right: one of
None, 1024, 2048, 4096 (e.g. setValue('1024')), plus tileOverlap as a number. Tiling large
frames is built in - no hand-made tile tree is needed. Verify: inf['tileSize'].value() reads the string
you set.
import torch in Nuke's Python fails (ModuleNotFoundError) - torch ships only as DLLs in the install
root (torch.dll, torch_cpu.dll, torch_cuda.dll). Find the bundled PyTorch version from Foundry's release
notes and trace in a separate venv to match: Nuke 15.0 cannot load 2.x TorchScript; 15.1+ / 16 / 17 take
torch==2.1.1+cpu traces; .cat files from 13.x do not load in 14+. Verify: reload the .pt with
torch.jit.load in the tracing venv, then load the .cat in Nuke.
Cattery package discovery is gated by cat.json. Wrong: an invented schema (Nuke finds 0 packages), or a
minimum_nuke_version_required that does not match the target (min 15.0 is found in 15.0 and hidden in 14.9;
min 13.2 also shows in 14.9). Right: copy the installed
packages' shape - {"minimum_nuke_version_required": 15.1, "version": 1, "category": "...", "description": "...", "cats": [{"filepath": "MyModel.gizmo", "name": "MyModel", "icon": "MyModel.png"}]} in
~/.nuke/Cattery/<Model>/. cats[].filepath may be a gizmo wrapping Inference OR the .cat itself (Nuke
pastes an Inference node for a .cat). The package is listed only when the running Nuke meets the minimum
version. Verify: nukescripts.cattery.discover_packages lists it in the target version, not by eye. A .cat
referenced by path in Inference's modelFile works without any cat.json.
Setting modelFile / torchScriptFile blocks Nuke's main thread. Large models take minutes to load
and the MCP bridge times out (ECONNRESET) though the load still completes. Right: create and wire every node
and set the other knobs in one call, set the model file LAST in its own call, and do not kill Nuke while
CatFileCreator writes. Verify: the .cat exists and Inference reports no error after the load.
torch.jit.trace freezes the input resolution, and a different size crashes Nuke (hard crash, not an
error). Right: prefer torch.jit.script; with trace, Reformat the Inference input to the exact traced size
and back after. Never use torch.jit.optimize_for_inference - on 2.1.1 the saved .pt then fails to load
("required keyword attribute 'value' undefined"). Verify: reload the .pt before building the .cat.
Channel names must be predefined Nuke channels. Custom names (da.r, other.1) gave "invalid
map<K, T> key" at runtime. Right: full dot names, comma-separated - rgba.red,rgba.green,rgba.blue in,
depth.Z (capital Z) out; spare vessels are default channels such as forward.u, backward.v,
disparityL.x, mask.a. Verify: the name is in nuke.channels() and the Inference output channel holds
data.
Headless runs need --gpu. Under nuke -t --safe alone ML nodes report gpuName: Not available and
run on the CPU, so timings (and possibly results) differ from the GUI. Right: nuke -t --safe --gpu.
Verify: read the node's gpuName knob.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/nuke-blinkscriptVerified BlinkScript traps in Nuke 17 - kernelSource.setValue silently keeps the default kernel, a compile error in the GUI raises a modal dialog that wedges the MCP bridge, param knobs are Kernel_param, eAccessPoint takes no coordinates, eAccessRanged2D without setRange segfaults. Use when writing, loading or debugging a BlinkScript or .blink kernel from Python or the MCP./nuke-node-tree-patternsVerified patterns for building Nuke node trees from Python - what auto-connects, cropping with Reformat 'to box', blending overlapping pre-masked tiles with an Expression mask, Premult and a plus Merge. Use when a script must wire, position or blend generated nodes, or for tile-and-blend tools./nuke-npx claudepluginhub sideshowroberto/vfx-agent-toolkit --plugin nuke-vfxOther plugins' skills for the same job