RTX Remix Define Layer ID
The path-building helper that saves you from hand-typing layer IDs
- layer_id
Layer IDs in RTX Remix are paths, and paths are where half the mistakes in this pack happen. A stray slash, a missed directory, a Windows backslash where the Toolkit wants forward slashes - all of it comes back to haunt you later as a "layer not found" that's annoying to trace. RTX Remix Define Layer ID exists to make those IDs the boring, correct way: it builds the path for you.
And here's the nice part: this node is pure string math. No context input, no Toolkit call, nothing to install alongside it in a running REST API graph. You could wire it up and hit queue with the Toolkit completely shut down and it'd still give you the right ID. It just joins a few strings into a posix-style path.
Inputs (all three are simple):
name(STRING) - the layer's own name, the final path segment.parent_layer_id(STRING) - the parent layer's path. Empty (the default) means the layer sits at the project root.directories(STRING, optional) - extra sub-directories to inject between the parent and the name.
Output: layer_id (STRING) - the assembled path, e.g. name = "v2", parent_layer_id = "project/layers/replacement", directories = "props" produces project/layers/replacement/props/v2. Hand that straight into RTX Remix Create Layer, RTX Remix Mute Layer, or any other node that wants a layer ID.
That's the whole job, and honestly that's why it's worth having. When you're chaining multiple layer operations in one workflow - create a replacement layer, mute the capture layer above it, set it as edit target, save it - building every ID through this one node means you only define the "where" once and every downstream node agrees about the path. It also plays nicely with string nodes: feed it names from RTX Remix String Concatenate if you're generating layer names programmatically.
Install: part of the NVIDIAGameWorks/ComfyUI-RTX-Remix pack. ComfyUI Manager (search "RTX Remix") is easiest:
cd ComfyUI/custom_nodes
git clone https://github.com/NVIDIAGameWorks/ComfyUI-RTX-Remix
# restart ComfyUI
Because it's a pure helper, it works in any ComfyUI v0.3.48+ (the pack is V3-schema) without the RTX Remix Toolkit running - a rare exception among these nodes. No model files, no extra dependencies beyond the pack's standard requests/pillow/numpy set.
The one thing to keep in mind: it builds a path, it doesn't check that the layer exists. Define Layer ID will happily give you a perfectly formed ID for a layer that was never created. That's not a bug - it's why you pair it with RTX Remix Get Layers when you need to know what's actually there, or RTX Remix Create Layer when you need it to be there. Think of it as the naming convention node, not the existence-check node.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| name | STRING | — | |
| parent_layer_id | STRING | — | |
| directoriesopt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| layer_id | STRING | — |